From 98137f511493da4a56a3a935538bd9c05c825660 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 14 May 2005 02:30:41 +0000 Subject: bug introduced by me in 1.4 --- usr.sbin/ypserv/stdhosts/stdhosts.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin/ypserv/stdhosts/stdhosts.c') 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 @@ -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 @@ -117,7 +117,7 @@ main(int argc, char *argv[]) while (!isspace(*p)) /* find first "space" */ p++; while (isspace(*p)) /* replace space with */ - *p = '\0'; p++; + *p++ = '\0'; v = p; /* save start of value */ while (*p != '\0') /* find end of string */ -- cgit v1.2.3