Eric Lavigne updates

This commit is contained in:
Daniel Stenberg 2001-11-27 07:27:32 +00:00
parent 13ac89af24
commit dccc77a325
5 changed files with 11 additions and 8 deletions

View file

@ -902,14 +902,14 @@ static int dprintf_formatf(
}
else {
/* Write "(nil)" for a nil pointer. */
static char nil[] = "(nil)";
static char strnil[] = "(nil)";
register char *point;
width -= sizeof(nil) - 1;
width -= sizeof(strnil) - 1;
if (p->flags & FLAGS_LEFT)
while (width-- > 0)
OUTCHAR(' ');
for (point = nil; *point != '\0'; ++point)
for (point = strnil; *point != '\0'; ++point)
OUTCHAR(*point);
if (! (p->flags & FLAGS_LEFT))
while (width-- > 0)