summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorAndrew O. Shadoura <bugzilla@tut.by>2011-03-19 21:15:57 +0200
committerAndrew O. Shadoura <bugzilla@tut.by>2011-03-19 21:15:57 +0200
commita84b6aa18b4990d2caf5d6ff5c90b1129f2689aa (patch)
treed26bc0bf7d73b6fb4cb1faf62e63406cb0cd8fab /debian
parent7deebe9f359c67d61130572b52e3c9cf75b3ef0e (diff)
fix the format string once more
Diffstat (limited to 'debian')
-rw-r--r--debian/patches/use-proper-format-string.diff4
1 files changed, 2 insertions, 2 deletions
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 <bugzilla@tut.by>
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));