[uClibc]printf(NULL)

Manuel Novoa III mnovoa3 at bellsouth.net
Wed Mar 7 15:08:42 UTC 2001


Vodz,

On Wed, 07 Mar 2001, Vladimir N. Oleynik wrote:
> During testing mine setlocale.c I have encountered a problem: 
> 
> printf("%s", NULL)
> core dumped.
> 
> It is incorporated in idea or a lost feature?  

I modified printf.c to handle this over a week ago. 
I just tested it here and it worked fine.
quoting print.c:

					} else {	/* string */
						p = va_arg(ap, char *);
						if (!p) {
							p = "(null)";
						}
					}

[mjn3 at mars stdio]$ ls -l printf.c
-rw-rw-r--    1 mjn3     mjn3        17229 Feb 28 10:16 printf.c

Manuel





More information about the uClibc mailing list