[gimp/metadata-browser] metadata: fix length passed to base64 decoder
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] metadata: fix length passed to base64 decoder
- Date: Thu, 13 Sep 2012 00:25:01 +0000 (UTC)
commit 6bfa6cb34f92a5b29c3499a6b802b9a6b4bc5955
Author: Mikael Magnusson <mikachu src gnome org>
Date: Wed Jun 13 02:12:27 2012 +0200
metadata: fix length passed to base64 decoder
plug-ins/metadata/xmp-parse.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/plug-ins/metadata/xmp-parse.c b/plug-ins/metadata/xmp-parse.c
index 143b0a1..874ccc3 100644
--- a/plug-ins/metadata/xmp-parse.c
+++ b/plug-ins/metadata/xmp-parse.c
@@ -1064,7 +1064,7 @@ text_handler (GMarkupParseContext *markup_context,
case STATE_INSIDE_ALT_LI_RSC_IMG:
{
- size_t len, max_size;
+ size_t max_size;
guchar *decoded;
gint decoded_size;
gint state;
@@ -1073,8 +1073,7 @@ text_handler (GMarkupParseContext *markup_context,
#ifdef DEBUG_XMP_PARSER
/* g_print ("XMP: Pushing text:\n%s\n", text); */
#endif
- len = text_len - text_len;
- max_size = (len / 4) * 3 + 3;
+ max_size = (text_len / 4) * 3 + 3;
decoded = g_malloc (max_size);
state = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]