summaryrefslogtreecommitdiffstats
path: root/lib/libtermcap/tgoto.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libtermcap/tgoto.c')
-rw-r--r--lib/libtermcap/tgoto.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libtermcap/tgoto.c b/lib/libtermcap/tgoto.c
index e28a85c..85b8d57 100644
--- a/lib/libtermcap/tgoto.c
+++ b/lib/libtermcap/tgoto.c
@@ -35,6 +35,7 @@
static char sccsid[] = "@(#)tgoto.c 8.1 (Berkeley) 6/4/93";
#endif /* not lint */
+#include <string.h>
#include "termcap.h"
#define CTRL(c) ((c) & 037)
@@ -87,7 +88,7 @@ toohard:
return ("OOPS");
}
added[0] = 0;
- while (c = *cp++) {
+ while ( (c = *cp++) ) {
if (c != '%') {
*dp++ = c;
continue;
OpenPOWER on IntegriCloud