#ifndef HAVE_SETENV
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: setenv.c,v 1.3 1998/02/02 22:44:53 millert Exp $";
+static char *rcsid = "$OpenBSD: setenv.c,v 1.4 2001/07/09 06:57:45 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <stdlib.h>
if (!rewrite)
return (0);
if (strlen(C) >= l_value) { /* old larger; copy over */
- while ((*C++ = *value++));
+ while ((*C++ = *value++))
+ ;
return (0);
}
} else { /* create new slot */