HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa406ba
)
(doprnt1): Call to CHAR_HEAD_P fixed.
author
Richard M. Stallman
<rms@gnu.org>
Wed, 31 Dec 1997 21:48:28 +0000
(21:48 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Wed, 31 Dec 1997 21:48:28 +0000
(21:48 +0000)
src/doprnt.c
patch
|
blob
|
blame
|
history
diff --git
a/src/doprnt.c
b/src/doprnt.c
index
b88acf4
..
7734f9b
100644
(file)
--- a/
src/doprnt.c
+++ b/
src/doprnt.c
@@
-267,7
+267,7
@@
doprnt1 (lispstrings, buffer, bufsize, format, format_end, nargs, args)
{
/* Truncate the string at character boundary. */
tem = bufsize;
- while (!CHAR_HEAD_P (string
+ tem - 1
)) tem--;
+ while (!CHAR_HEAD_P (string
[tem - 1]
)) tem--;
bcopy (string, bufptr, tem);
/* We must calculate WIDTH again. */
width = strwidth (bufptr, tem);
@@
-310,8
+310,8
@@
doprnt1 (lispstrings, buffer, bufsize, format, format_end, nargs, args)
char *save_bufptr = bufptr;
do { *bufptr++ = *fmt++; }
- while (--bufsize > 0 && !CHAR_HEAD_P (fmt));
- if (!CHAR_HEAD_P (fmt))
+ while (--bufsize > 0 && !CHAR_HEAD_P (
*
fmt));
+ if (!CHAR_HEAD_P (
*
fmt))
{
bufptr = save_bufptr;
break;