From 5f265b755a92e7efdbd0d18694913209dfd9e055 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 11 May 2001 16:58:46 +0000 Subject: Fix a segfault in lash, hush, and cmdedit. Each of these used xgetcwd, but did not check the return for a NULL, and then continued to call strlen on the NULL when the cwd had been removed from under it. -Erik --- libbb/messages.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libbb/messages.c') diff --git a/libbb/messages.c b/libbb/messages.c index 99c2bc9d5..910cb8fa2 100644 --- a/libbb/messages.c +++ b/libbb/messages.c @@ -58,4 +58,7 @@ #ifdef L_name_longer_than_foo const char * const name_longer_than_foo = "Names longer than %d chars not supported."; #endif +#ifdef L_unknown + const char * const unknown = "(unknown)"; +#endif -- cgit v1.2.3