diff options
Diffstat (limited to 'usr.sbin/config/ukcutil.c')
-rw-r--r-- | usr.sbin/config/ukcutil.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/config/ukcutil.c b/usr.sbin/config/ukcutil.c index 7d0d5299f0d..50b356f477d 100644 --- a/usr.sbin/config/ukcutil.c +++ b/usr.sbin/config/ukcutil.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ukcutil.c,v 1.18 2009/10/27 23:59:51 deraadt Exp $ */ +/* $OpenBSD: ukcutil.c,v 1.19 2011/04/06 11:36:26 miod Exp $ */ /* * Copyright (c) 1999-2001 Mats O Jansson. All rights reserved. @@ -1358,7 +1358,7 @@ process_history(int len, char *buf) c = buf; - while (*c != NULL) { + while (*c != '\0') { switch (*c) { case 'a': c++; @@ -1432,12 +1432,12 @@ process_history(int len, char *buf) ukc_mod_kernel = 1; break; case 'q': - while (*c != NULL) + while (*c != '\0') c++; break; default: printf("unknown command %c\n", *c); - while (*c != NULL && *c != '\n') + while (*c != '\0' && *c != '\n') c++; break; } |