summaryrefslogtreecommitdiff
path: root/usr.sbin/ypserv/stdhosts/stdhosts.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-05-14 02:30:41 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-05-14 02:30:41 +0000
commit98137f511493da4a56a3a935538bd9c05c825660 (patch)
tree540aec6cb9abe526e043bf4b6af81e73faff4c4e /usr.sbin/ypserv/stdhosts/stdhosts.c
parent48ac1a614f9c02f083f6c54d563d19ae28f1c04f (diff)
bug introduced by me in 1.4
Diffstat (limited to 'usr.sbin/ypserv/stdhosts/stdhosts.c')
-rw-r--r--usr.sbin/ypserv/stdhosts/stdhosts.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ypserv/stdhosts/stdhosts.c b/usr.sbin/ypserv/stdhosts/stdhosts.c
index 31da8cfef2b..14e97efbea0 100644
--- a/usr.sbin/ypserv/stdhosts/stdhosts.c
+++ b/usr.sbin/ypserv/stdhosts/stdhosts.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: stdhosts.c,v 1.12 2003/07/18 22:58:56 david Exp $ */
+/* $OpenBSD: stdhosts.c,v 1.13 2005/05/14 02:30:40 deraadt Exp $ */
/*
* Copyright (c) 1994 Mats O Jansson <moj@stacken.kth.se>
@@ -27,7 +27,7 @@
*/
#ifndef LINT
-static const char rcsid[] = "$OpenBSD: stdhosts.c,v 1.12 2003/07/18 22:58:56 david Exp $";
+static const char rcsid[] = "$OpenBSD: stdhosts.c,v 1.13 2005/05/14 02:30:40 deraadt Exp $";
#endif
#include <sys/types.h>
@@ -117,7 +117,7 @@ main(int argc, char *argv[])
while (!isspace(*p)) /* find first "space" */
p++;
while (isspace(*p)) /* replace space with <NUL> */
- *p = '\0'; p++;
+ *p++ = '\0';
v = p; /* save start of value */
while (*p != '\0') /* find end of string */