void-packages/srcpkgs/wvstreams/patches/wvstreams-4.6.1-wvcrash-bas...

12 lines
374 B
Diff

--- a/utils/wvcrash.cc.old 2015-09-22 02:27:09.219293510 -0400
+++ b/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)
{