void-packages/srcpkgs/wvstreams/patches/wvstreams-4.6.1-wvcrash-basename.patch
2015-09-23 21:39:14 -04:00

11 lines
370 B
Diff

--- utils/wvcrash.cc.old 2015-09-22 02:27:09.219293510 -0400
+++ utils/wvcrash.cc 2015-09-22 02:37:15.577967752 -0400
@@ -409,7 +409,7 @@
void wvcrash_setup(const char *_argv0, const char *_desc)
{
if (_argv0)
- argv0 = basename(_argv0);
+ argv0 = strrchr(_argv0, '/') ? strrchr(_argv0, '/')+1 : _argv0;
__wvcrash_init_buffers(argv0);
if (_desc)
{