diff options
author | Heiko Rosemann <heiko.rosemann@web.de> | 2020-06-02 07:48:41 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-06-02 07:48:41 +0700 |
commit | e721f1cd32972cbe8d98b016dc4ede3fe14567c8 (patch) | |
tree | 90c8dc3556a38c9075cdb38590cc5eb031990ee9 /libraries/libxdg-basedir/alloc_buffer.patch | |
parent | 68ec6aa04309872ff01b992e8bf33c40a8fdc176 (diff) | |
download | slackbuilds-e721f1cd32972cbe8d98b016dc4ede3fe14567c8.tar.gz |
libraries/libxdg-basedir: Moved from development and patched.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/libxdg-basedir/alloc_buffer.patch')
-rw-r--r-- | libraries/libxdg-basedir/alloc_buffer.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libraries/libxdg-basedir/alloc_buffer.patch b/libraries/libxdg-basedir/alloc_buffer.patch new file mode 100644 index 0000000000..4726e58dbf --- /dev/null +++ b/libraries/libxdg-basedir/alloc_buffer.patch @@ -0,0 +1,13 @@ +Index: libxdg-basedir-1.2.0/src/basedir.c +=================================================================== +--- libxdg-basedir-1.2.0.orig/src/basedir.c 2014-02-11 19:56:41.702376488 +0100 ++++ libxdg-basedir-1.2.0/src/basedir.c 2014-02-11 19:56:41.698376482 +0100 +@@ -574,7 +574,7 @@ + unsigned int homelen; + if (!(home = xdgGetEnv("HOME"))) + return NULL; +- if (!(relhome = (char*)malloc((homelen = strlen(home))+fallbacklength))) return NULL; ++ if (!(relhome = (char*)malloc((homelen = strlen(home))+fallbacklength+1))) return NULL; + memcpy(relhome, home, homelen); + memcpy(relhome+homelen, relativefallback, fallbacklength+1); + } |