aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/wine-devel
diff options
context:
space:
mode:
authorse <se@FreeBSD.org>1996-02-07 07:15:46 +0800
committerse <se@FreeBSD.org>1996-02-07 07:15:46 +0800
commit814d522b12ad0a2ad0142e506bd0794e7d7821e7 (patch)
tree63cc1dfe7dd6dc8aedc543615f0e2567f4030cde /emulators/wine-devel
parentce18564f4141073795bc9467f2f9b16cf1cfb4cb (diff)
downloadfreebsd-ports-gnome-814d522b12ad0a2ad0142e506bd0794e7d7821e7.tar.gz
freebsd-ports-gnome-814d522b12ad0a2ad0142e506bd0794e7d7821e7.tar.zst
freebsd-ports-gnome-814d522b12ad0a2ad0142e506bd0794e7d7821e7.zip
Fix off by one error in malloc parameters.
Submitted by: Thomas Sandford <tdgsandf@prds-grn.demon.co.uk>
Diffstat (limited to 'emulators/wine-devel')
-rw-r--r--emulators/wine-devel/files/patch-ad23
1 files changed, 23 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 );