packages: python3/python3-cast-fix.patch (NEW) - buildfix
adamg
adamg at pld-linux.org
Mon Jun 29 16:56:20 CEST 2009
Author: adamg Date: Mon Jun 29 14:56:20 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- buildfix
---- Files affected:
packages/python3:
python3-cast-fix.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/python3/python3-cast-fix.patch
diff -u /dev/null packages/python3/python3-cast-fix.patch:1.1
--- /dev/null Mon Jun 29 16:56:20 2009
+++ packages/python3/python3-cast-fix.patch Mon Jun 29 16:56:15 2009
@@ -0,0 +1,11 @@
+--- Python-3.1/Modules/python.c~ 2009-05-29 18:22:26.000000000 +0200
++++ Python-3.1/Modules/python.c 2009-06-29 16:18:12.800560478 +0200
+@@ -57,7 +57,7 @@
+ /* Overallocate; as multi-byte characters are in the argument, the
+ actual output could use less memory. */
+ argsize = strlen(arg) + 1;
+- res = PyMem_Malloc(argsize*sizeof(wchar_t));
++ res = (wchar_t *)PyMem_Malloc(argsize*sizeof(wchar_t));
+ if (!res) goto oom;
+ in = (unsigned char*)arg;
+ out = res;
================================================================
More information about the pld-cvs-commit
mailing list