[gimp] metadata: fix length passed to base64 decoder
- From: Mikael Magnusson <mikachu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] metadata: fix length passed to base64 decoder
- Date: Wed, 13 Jun 2012 00:13:25 +0000 (UTC)
commit a4cd8637af7e29a3b78fda6034aa1889df050540
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]