From 266c13df18bb576bbda4a417c429a66a8929c6af Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sun, 23 Aug 2009 11:50:39 +0000 Subject: Check the return value of strunvis against -1 not NULL. --- tty-term.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tty-term.c') diff --git a/tty-term.c b/tty-term.c index 2d7bcae9..795698c0 100644 --- a/tty-term.c +++ b/tty-term.c @@ -1,4 +1,4 @@ -/* $Id: tty-term.c,v 1.29 2009-08-21 21:15:00 tcunha Exp $ */ +/* $Id: tty-term.c,v 1.30 2009-08-23 11:50:39 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott @@ -172,7 +172,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); } -- cgit