search for: wenv_siz

Displaying 2 results from an estimated 2 matches for "wenv_siz".

2006 May 04
2
xmalloc(foo*bar) -> xcalloc(foo, bar) for Portable
...ving revision 1.16 diff -u -p -r1.16 bsd-cygwin_util.c --- openbsd-compat/bsd-cygwin_util.c 25 Mar 2006 13:03:24 -0000 1.16 +++ openbsd-compat/bsd-cygwin_util.c 4 May 2006 02:02:57 -0000 @@ -268,7 +268,7 @@ fetch_windows_environment(void) char **e, **p; 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)) -- Darren Tucker (dtucker at zip.com.au) GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C...
2004 Aug 18
5
[Bug 915] [PATCH] Only copy basic Windows environment
http://bugzilla.mindrot.org/show_bug.cgi?id=915 Summary: [PATCH] Only copy basic Windows environment Product: Portable OpenSSH Version: -current Platform: ix86 OS/Version: Cygwin on NT/2k Status: NEW Severity: security Priority: P2 Component: sshd AssignedTo: openssh-bugs at mindrot.org