# HG changeset patch # User Richard M. Stallman # Date 883604908 0 # Node ID 88d7475304df9fd120ef4d7bd68acc098c20760c # Parent 4b3fc2cda7fc71b98c82b7397baa1b743acf8db0 (doprnt1): Call to CHAR_HEAD_P fixed. diff -r 4b3fc2cda7fc -r 88d7475304df src/doprnt.c --- a/src/doprnt.c Wed Dec 31 05:05:32 1997 +0000 +++ b/src/doprnt.c Wed Dec 31 21:48:28 1997 +0000 @@ -267,7 +267,7 @@ { /* 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 @@ 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;