diff options
Diffstat (limited to 'abs/core/shadow/xstrdup.patch')
-rw-r--r-- | abs/core/shadow/xstrdup.patch | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/abs/core/shadow/xstrdup.patch b/abs/core/shadow/xstrdup.patch new file mode 100644 index 0000000..90d0dd1 --- /dev/null +++ b/abs/core/shadow/xstrdup.patch @@ -0,0 +1,9 @@ +--- shadow-4.0.18.2/libmisc/xmalloc.c 2007-10-07 12:47:22.000000000 +0100 ++++ shadow-4.0.18.2/libmisc/xmalloc.c.new 2007-11-27 22:43:05.000000000 +0000 +@@ -27,5 +27,6 @@ + + char *xstrdup (const char *str) + { ++ if(str == NULL) return NULL; + return strcpy (xmalloc (strlen (str) + 1), str); + } |