Author: rfm
Date: Thu May 19 09:34:14 2016
New Revision: 39782

URL: http://svn.gna.org/viewcvs/gnustep?rev=39782&view=rev
Log:
mingw64 tweak

Modified:
    libs/xcode/trunk/GNUmakefile.preamble
    libs/xcode/trunk/setenv.c

Modified: libs/xcode/trunk/GNUmakefile.preamble
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/xcode/trunk/GNUmakefile.preamble?rev=39782&r1=39781&r2=39782&view=diff
==============================================================================
--- libs/xcode/trunk/GNUmakefile.preamble       (original)
+++ libs/xcode/trunk/GNUmakefile.preamble       Thu May 19 09:34:14 2016
@@ -25,5 +25,8 @@
 
 ifeq ($(GNUSTEP_TARGET_OS),mingw32)
 XCode_C_FILES = setenv.c
+else ifeq ($(GNUSTEP_TARGET_OS),mingw64)
+XCode_C_FILES = setenv.c
 endif
 
+

Modified: libs/xcode/trunk/setenv.c
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/xcode/trunk/setenv.c?rev=39782&r1=39781&r2=39782&view=diff
==============================================================================
--- libs/xcode/trunk/setenv.c   (original)
+++ libs/xcode/trunk/setenv.c   Thu May 19 09:34:14 2016
@@ -1,5 +1,6 @@
 #include <stdlib.h>
 #include <strings.h>
+#include <stdio.h>
 
 int setenv(const char *key, const char *value, int overwrite)
 {
@@ -11,7 +12,7 @@
       int val_len = strlen(value);
       int len = key_len + 1 + val_len + 1; // key + "=" + value + '\0'
       char *buffer = malloc(len);
-      bzero(buffer, len);
+      memset(buffer, 0, len);
       sprintf(buffer,"%s=%s",key,value);
       result = putenv(buffer);
       free(buffer);


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to