From 0e0cc52393624529cb8e0c00d1b7367b89b9e84e Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Fri, 10 Aug 2012 00:09:42 +0200 Subject: [PATCH] chat_init(): Fix problematic ptrdiff_t format string handling Introduced in commit 2e8729f. --- chat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chat.c b/chat.c index 76d8a4e..bcee122 100644 --- a/chat.c +++ b/chat.c @@ -59,10 +59,10 @@ void chat_init(char *chat_file) { } } if (!feof(f)) - fprintf(stderr, "syntax error around line %u in %s\n", (uintptr_t)(entry - chat_table), chat_file); + fprintf(stderr, "syntax error around line %tu in %s\n", entry - chat_table, chat_file); fclose(f); if (DEBUGL(1)) - fprintf(stderr, "Loaded %u chat entries from %s\n", (uintptr_t)(entry - chat_table), chat_file); + fprintf(stderr, "Loaded %tu chat entries from %s\n", entry - chat_table, chat_file); } void chat_done() { -- 2.11.4.GIT