Ticket #112: perror.patch
File perror.patch, 387 bytes (added by , 4 years ago) |
---|
-
dios/libc/stdio/perror.c
diff -u a/dios/libc/stdio/perror.c b/dios/libc/stdio/perror.c
a b 13 13 /* TODO: Doing this via a static array is not the way to do it. */ 14 14 void perror( const char * s ) 15 15 { 16 if ( ( s != NULL ) && ( s[0] != '\n' ) )16 if ( ( s != NULL ) && ( *s != '\0' ) ) 17 17 { 18 18 fprintf( stderr, "%s: ", s ); 19 19 }