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 | |
parent | b6f3edc28c854775a1a852aaac8fffec2659c31a (diff) | |
download | freebsd-ports-9d027f93a17a1bb0d6ca911b6900e40020bc2f70.zip |
Fix off by one error in malloc parameters.
Submitted by: Thomas Sandford <tdgsandf@prds-grn.demon.co.uk>
-rw-r--r-- | emulators/wine-devel/files/patch-ad | 23 | ||||
-rw-r--r-- | emulators/wine/files/patch-ad | 23 |
2 files changed, 46 insertions, 0 deletions
diff --git a/emulators/wine-devel/files/patch-ad b/emulators/wine-devel/files/patch-ad index 98f8f49df9ee..7280adcd4307 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 ); 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 ); |