]> andersk Git - gssapi-openssh.git/blobdiff - openssh/openbsd-compat/setenv.c
Import of OpenSSH 3.1p1
[gssapi-openssh.git] / openssh / openbsd-compat / setenv.c
index ac9670baf9133a7abdd2b0d9e0f271c18d445fd0..6c2d5cd3188a149ac2d17a87a71f51507089c2de 100644 (file)
@@ -35,7 +35,7 @@
 #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>
@@ -101,7 +101,8 @@ setenv(name, value, rewrite)
                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 */
This page took 0.036942 seconds and 4 git commands to generate.