diff options
author | se <se@FreeBSD.org> | 1996-02-06 23:15:46 +0000 |
---|---|---|
committer | se <se@FreeBSD.org> | 1996-02-06 23:15:46 +0000 |
commit | 814d522b12ad0a2ad0142e506bd0794e7d7821e7 (patch) | |
tree | 63cc1dfe7dd6dc8aedc543615f0e2567f4030cde /emulators/wine-devel/files | |
parent | ce18564f4141073795bc9467f2f9b16cf1cfb4cb (diff) | |
download | FreeBSD-ports-814d522b12ad0a2ad0142e506bd0794e7d7821e7.zip FreeBSD-ports-814d522b12ad0a2ad0142e506bd0794e7d7821e7.tar.gz |
Fix off by one error in malloc parameters.
Submitted by: Thomas Sandford <tdgsandf@prds-grn.demon.co.uk>
Diffstat (limited to 'emulators/wine-devel/files')
-rw-r--r-- | emulators/wine-devel/files/patch-ad | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/emulators/wine-devel/files/patch-ad b/emulators/wine-devel/files/patch-ad index 98f8f49..7280adc 100644 --- a/emulators/wine-devel/files/patch-ad +++ b/emulators/wine-devel/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 ); |