changeset 20530:88d7475304df

(doprnt1): Call to CHAR_HEAD_P fixed.
author Richard M. Stallman <rms@gnu.org>
date Wed, 31 Dec 1997 21:48:28 +0000
parents 4b3fc2cda7fc
children f019e056ad9a
files src/doprnt.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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;