[gimp] app/xcf: Simplify MAX_XCF_STRING_LEN



commit 130885e903f7c880255695b916e683cc511b77b4
Author: Martin Nordholts <martinn src gnome org>
Date:   Sat Oct 16 19:17:29 2010 +0200

    app/xcf: Simplify MAX_XCF_STRING_LEN
    
    Simplify MAX_XCF_STRING_LEN and align sentences in warning message.

 app/xcf/xcf-read.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/app/xcf/xcf-read.c b/app/xcf/xcf-read.c
index 4e4ab3a..d087c86 100644
--- a/app/xcf/xcf-read.c
+++ b/app/xcf/xcf-read.c
@@ -27,7 +27,7 @@
 
 #include "gimp-intl.h"
 
-#define MAX_XCF_STRING_LEN (16 * (1L << 20)) /* 16 MB */
+#define MAX_XCF_STRING_LEN (16L * 1024 * 1024)
 
 guint
 xcf_read_int32 (FILE    *fp,
@@ -97,8 +97,8 @@ xcf_read_string (FILE   *fp,
 
       if (tmp > MAX_XCF_STRING_LEN)
         {
-          g_warning ("Maximum string length (%ld bytes) exceeded."
-                     " Possibly corrupt XCF file.", MAX_XCF_STRING_LEN);
+          g_warning ("Maximum string length (%ld bytes) exceeded. "
+                     "Possibly corrupt XCF file.", MAX_XCF_STRING_LEN);
           data[i] = NULL;
         }
       else if (tmp > 0)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]