diff options
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/gencat/genlib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/gencat/genlib.c b/usr.bin/gencat/genlib.c index 8eaf39c..d0fcefa 100644 --- a/usr.bin/gencat/genlib.c +++ b/usr.bin/gencat/genlib.c @@ -450,7 +450,8 @@ MCReadCat(int fd) static void printS(int fd, const char *str) { - write(fd, str, strlen(str)); + if (str) + write(fd, str, strlen(str)); } static void |