diff options
author | Ali Polatel <hawking@gentoo.org> | 2007-04-09 16:26:01 +0000 |
---|---|---|
committer | Ali Polatel <hawking@gentoo.org> | 2007-04-09 16:26:01 +0000 |
commit | 8b0ba0ad1b856a101f0fa052b0bf6d83cb1e24da (patch) | |
tree | 146a2711ad918a2a7b30c5b67b0aaf033a0dc847 /app-misc/slmon/files/slmon-0.5.13-invalid-free.patch | |
parent | net-dns/dnrd-2.20.3 in portage (diff) | |
download | masterdriverz-8b0ba0ad1b856a101f0fa052b0bf6d83cb1e24da.tar.gz masterdriverz-8b0ba0ad1b856a101f0fa052b0bf6d83cb1e24da.tar.bz2 masterdriverz-8b0ba0ad1b856a101f0fa052b0bf6d83cb1e24da.zip |
patch and updated ebuild for bug 151293
svn path=/; revision=29
Diffstat (limited to 'app-misc/slmon/files/slmon-0.5.13-invalid-free.patch')
-rw-r--r-- | app-misc/slmon/files/slmon-0.5.13-invalid-free.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/app-misc/slmon/files/slmon-0.5.13-invalid-free.patch b/app-misc/slmon/files/slmon-0.5.13-invalid-free.patch new file mode 100644 index 0000000..9728492 --- /dev/null +++ b/app-misc/slmon/files/slmon-0.5.13-invalid-free.patch @@ -0,0 +1,16 @@ +--- rc.c.orig 2004-06-20 18:56:48.000000000 +0300 ++++ rc.c 2007-04-09 19:14:05.000000000 +0300 +@@ -177,9 +177,10 @@ + char *home, dotrc[1024] = { 0 }; + + home = getenv("HOME"); +- strcpy(dotrc, home); +- strcat(dotrc, "/.slmonrc"); +- free(home); ++ if ( home != NULL ) { ++ strcpy(dotrc, home); ++ strcat(dotrc, "/.slmonrc"); ++ } + + if ((f = fopen("/etc/slmonrc", "r")) != NULL) { + slmon_conf_parse(f); |