diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-05-14 02:30:41 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-05-14 02:30:41 +0000 |
commit | 98137f511493da4a56a3a935538bd9c05c825660 (patch) | |
tree | 540aec6cb9abe526e043bf4b6af81e73faff4c4e /usr.sbin/ypserv/stdhosts/stdhosts.c | |
parent | 48ac1a614f9c02f083f6c54d563d19ae28f1c04f (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.c | 6 |
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 */ |