summarylogtreecommitdiffstats
path: root/xstrdup.patch
diff options
context:
space:
mode:
authorTimothée Ravier2013-11-03 19:42:41 +0100
committerTimothée Ravier2013-11-03 19:42:41 +0100
commit9acabedc3fc747958da16a85d423fa040e01221c (patch)
treef0189c71c12134ccc7b5a9e1beb6acc9e7e8a34b /xstrdup.patch
downloadaur-9acabedc3fc747958da16a85d423fa040e01221c.tar.gz
General update: SELinux userspace & pkg renaming
Diffstat (limited to 'xstrdup.patch')
-rw-r--r--xstrdup.patch9
1 files changed, 9 insertions, 0 deletions
diff --git a/xstrdup.patch b/xstrdup.patch
new file mode 100644
index 000000000000..bce434264cd0
--- /dev/null
+++ b/xstrdup.patch
@@ -0,0 +1,9 @@
+--- shadow-4.1.2.1/libmisc/xmalloc.c 2008-08-30 21:55:44.000000000 -0500
++++ shadow-4.1.2.1/libmisc/xmalloc.c.new 2008-08-30 21:55:36.000000000 -0500
+@@ -61,5 +61,6 @@
+
+ char *xstrdup (const char *str)
+ {
++ if(str == NULL) return NULL;
+ return strcpy (xmalloc (strlen (str) + 1), str);
+ }