From 1eb303e6d401c1ef2992933532eb2d7eab36cecf Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sun, 23 Aug 2009 11:40:05 +0000 Subject: [PATCH] Check the return value of strunvis against -1 not NULL. --- tty-term.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tty-term.c b/tty-term.c index 50b2520a..dd3e8e00 100644 --- a/tty-term.c +++ b/tty-term.c @@ -173,7 +173,7 @@ tty_term_override(struct tty_term *term, const char *overrides) if ((ptr = strchr(entstr, '=')) != NULL) { *ptr++ = '\0'; val = xstrdup(ptr); - if (strunvis(val, ptr) == NULL) { + if (strunvis(val, ptr) == -1) { xfree(val); val = xstrdup(ptr); }