app/xcf: Simplify MAX_XCF_STRING_LEN

Simplify MAX_XCF_STRING_LEN and align sentences in warning message.
This commit is contained in:
Martin Nordholts 2010-10-16 19:17:29 +02:00
parent 133c62327e
commit 130885e903
1 changed files with 3 additions and 3 deletions

View File

@ -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)