]> andersk Git - openssh.git/blobdiff - openbsd-compat/bsd-cygwin_util.c
ignore generated Makefile
[openssh.git] / openbsd-compat / bsd-cygwin_util.c
index 94f63f1a574f7d241416285752fd2cb52a7719af..b408dde2db6b9b8d38a2caceed61c45620dca9d2 100644 (file)
@@ -29,8 +29,6 @@
 
 #include "includes.h"
 
-RCSID("$Id$");
-
 #ifdef HAVE_CYGWIN
 
 #include <fcntl.h>
@@ -268,9 +266,9 @@ char **
 fetch_windows_environment(void)
 {
        char **e, **p;
-       int i, idx = 0;
+       unsigned int i, idx = 0;
 
-       p = xmalloc((WENV_SIZ + 1) * sizeof(char *));
+       p = xcalloc(WENV_SIZ + 1, sizeof(char *));
        for (e = environ; *e != NULL; ++e) {
                for (i = 0; i < WENV_SIZ; ++i) {
                        if (!strncmp(*e, wenv_arr[i].name, wenv_arr[i].namelen))
This page took 0.058105 seconds and 4 git commands to generate.