diff options
author | root <root@rshg054.dnsready.net> | 2012-09-14 00:04:07 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-09-14 00:04:07 +0000 |
commit | 1b99470a0c85186f768a328fcc11a7cfcc85be51 (patch) | |
tree | e08ce57006ed5455ffcfb1fb57544ed5604b0a80 /extra/slim/fix-glibc-segfault-1.3.4.patch | |
parent | 843685ce9dd76d37a4c7b0230eacb6d26bdf30dd (diff) |
Fri Sep 14 00:04:06 UTC 2012
Diffstat (limited to 'extra/slim/fix-glibc-segfault-1.3.4.patch')
-rw-r--r-- | extra/slim/fix-glibc-segfault-1.3.4.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/extra/slim/fix-glibc-segfault-1.3.4.patch b/extra/slim/fix-glibc-segfault-1.3.4.patch new file mode 100644 index 000000000..b035f8a78 --- /dev/null +++ b/extra/slim/fix-glibc-segfault-1.3.4.patch @@ -0,0 +1,13 @@ +Index: app.cpp +=================================================================== +--- app.cpp (revision 223) ++++ app.cpp (working copy) +@@ -593,7 +593,7 @@ + + n++; + +- child_env = static_cast<char**>(malloc(sizeof(char*)*n)); ++ child_env = static_cast<char**>(malloc(sizeof(char*)*(n+1))); + memcpy(child_env, old_env, sizeof(char*)*n); + child_env[n - 1] = StrConcat("XDG_SESSION_COOKIE=", ck.get_xdg_session_cookie()); + child_env[n] = NULL; |