diff options
author | Stefan Eßer <se@FreeBSD.org> | 1996-02-06 23:15:46 +0000 |
---|---|---|
committer | Stefan Eßer <se@FreeBSD.org> | 1996-02-06 23:15:46 +0000 |
commit | 9d027f93a17a1bb0d6ca911b6900e40020bc2f70 (patch) | |
tree | d33a9a31d7a0e0017f916bf432bbe6ac7f89201f /emulators/wine/files | |
parent | Add NCFTP tailer arguments: ${NCFTPTAIL} variable (diff) |
Fix off by one error in malloc parameters.
Submitted by: Thomas Sandford <tdgsandf@prds-grn.demon.co.uk>
Notes
Notes:
svn path=/head/; revision=2680
Diffstat (limited to 'emulators/wine/files')
-rw-r--r-- | emulators/wine/files/patch-ad | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/emulators/wine/files/patch-ad b/emulators/wine/files/patch-ad index 98f8f49df9ee..7280adcd4307 100644 --- a/emulators/wine/files/patch-ad +++ b/emulators/wine/files/patch-ad @@ -48,3 +48,26 @@ + #include <sys/types.h> #include <sys/stat.h> +*** files/directory.c~ Wed Jan 31 19:57:23 1996 +--- files/directory.c Wed Feb 7 00:10:58 1996 +*************** +*** 165,173 **** + /* Put the temp and Windows directories into the environment */ + +! env_p = (char *)xmalloc( strlen(DIR_TempDosDir) + 5 ); + strcpy( env_p, "TEMP=" ); + strcpy( env_p + 5, DIR_TempDosDir ); + putenv( env_p ); +! env_p = (char *)xmalloc( strlen(DIR_WindowsDosDir) + 7 ); + strcpy( env_p, "windir=" ); + strcpy( env_p + 7, DIR_WindowsDosDir ); +--- 165,173 ---- + /* Put the temp and Windows directories into the environment */ + +! env_p = (char *)xmalloc( strlen(DIR_TempDosDir) + 6 ); + strcpy( env_p, "TEMP=" ); + strcpy( env_p + 5, DIR_TempDosDir ); + putenv( env_p ); +! env_p = (char *)xmalloc( strlen(DIR_WindowsDosDir) + 8 ); + strcpy( env_p, "windir=" ); + strcpy( env_p + 7, DIR_WindowsDosDir ); |