From: mortenp Date: Mon, 4 Sep 2006 19:25:51 +0000 (+1000) Subject: fixed two printf()s of size_t in unistr_dump() X-Git-Tag: RELEASE_1_2_12_RC1~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbfc58187d179ff8588c1d9627c655402b0cdfab;p=thirdparty%2Fmlmmj.git fixed two printf()s of size_t in unistr_dump() --- diff --git a/src/unistr.c b/src/unistr.c index 8d5b77b7..87aac6c3 100644 --- a/src/unistr.c +++ b/src/unistr.c @@ -185,8 +185,8 @@ void unistr_dump(unistr *str) unsigned int i; printf("unistr_dump(%p)\n", (void *)str); - printf(" ->len = %d\n", str->len); - printf(" ->alloc_len = %d\n", str->alloc_len); + printf(" ->len = %lu\n", (unsigned long)str->len); + printf(" ->alloc_len = %lu\n", (unsigned long)str->alloc_len); printf(" ->chars [ "); for (i=0; ilen; i++) { if ((str->chars[i] <= 0x7F) && (str->chars[i] != '\n')) {