From: Paul Eggert Date: Wed, 27 Apr 2011 22:59:09 +0000 (-0700) Subject: * doprnt.c (doprnt): Fix two typos for long long. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~193^2~1 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=226be1b02f68533ddeaab0a95ede897850949a00;p=emacs.git * doprnt.c (doprnt): Fix two typos for long long. --- 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':