From 226be1b02f68533ddeaab0a95ede897850949a00 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 27 Apr 2011 15:59:09 -0700 Subject: [PATCH] * doprnt.c (doprnt): Fix two typos for long long. --- src/doprnt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/doprnt.c b/src/doprnt.c index cc4e5daebf3..48516eeabb7 100644 --- a/src/doprnt.c +++ b/src/doprnt.c @@ -210,7 +210,7 @@ doprnt (char *buffer, register size_t bufsize, const char *format, ; else if (*fmt == 'l') { - long_flag = 1 + (fmt + 1 < fmt_end && fmt[1] == 'l'); + long_flag = 1 + (fmt + 1 < format_end && fmt[1] == 'l'); fmt += long_flag; break; } @@ -242,7 +242,7 @@ doprnt (char *buffer, register size_t bufsize, const char *format, { default: error ("Invalid format operation %%%s%c", - long_flag ? "l" : "", fmt[-1]); + "ll" + 2 - long_flag, fmt[-1]); /* case 'b': */ case 'l': -- 2.39.2