From a84b6aa18b4990d2caf5d6ff5c90b1129f2689aa Mon Sep 17 00:00:00 2001 From: "Andrew O. Shadoura" Date: Sat, 19 Mar 2011 21:15:57 +0200 Subject: fix the format string once more --- debian/patches/use-proper-format-string.diff | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'debian') diff --git a/debian/patches/use-proper-format-string.diff b/debian/patches/use-proper-format-string.diff index a30fec2..6b3c9da 100644 --- a/debian/patches/use-proper-format-string.diff +++ b/debian/patches/use-proper-format-string.diff @@ -1,6 +1,6 @@ Description: Use the proper format string Format ‘%ld’ expects type ‘long int’, but argument 2 has type ‘size_t’, - so use ‘%lz’. + so use ‘%zu’ Author: Andrew O. Shadoura Bug: http://jira.atheme.org/browse/LG-2 @@ -11,7 +11,7 @@ Bug: http://jira.atheme.org/browse/LG-2 while (fgets(buf, 1024 * 1024 - 1, fp)) { - printf("length = %ld\n", strlen(buf)); -+ printf("length = %z\n", strlen(buf)); ++ printf("length = %zu\n", strlen(buf)); printf("jp = %s\n", libguess_determine_encoding(buf, strlen(buf), GUESS_REGION_JP)); printf("tw = %s\n", libguess_determine_encoding(buf, strlen(buf), GUESS_REGION_TW)); printf("cn = %s\n", libguess_determine_encoding(buf, strlen(buf), GUESS_REGION_CN)); -- cgit v1.2.3