diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-04-27 15:59:09 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-04-27 15:59:09 -0700 |
commit | 226be1b02f68533ddeaab0a95ede897850949a00 (patch) | |
tree | 8dda4f18254f40141e3c3cdba17dc602970a150e /src/doprnt.c | |
parent | 54b8e3f7753cdd63ba6dac998d56fcd34dd59d8e (diff) | |
download | emacs-226be1b02f68533ddeaab0a95ede897850949a00.tar.gz |
* doprnt.c (doprnt): Fix two typos for long long.
Diffstat (limited to 'src/doprnt.c')
-rw-r--r-- | src/doprnt.c | 4 |
1 files 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': |