-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
yeah I also could reproduce it, how ugly :)
Celelibi schrieb:
> Hi,
> The sbncGetBaseName (should be named sbncGetBasePath but it's not
> important) make some basic parsing on argv[0]. But if argv[0] looks like
> "sbnc" without a leading '.' or '/', BasePath stay NULL and the prog
> crash on the strlen.
>>From now, I see 2 ways of solving this :
> - Use /proc/self/exe, but it seems way too linux specific
ACK.
> - Do some PATH parsing (like todo comment say)
I will CC author.
>
> If this is not planed to be done, please just add something like:
> else {
> fprintf(stderr, "Please use absolute path for starting sbnc\n");
> exit(EXIT_FAILURE);
> }
>
Will be workarounded if I do not get a fix for it.
Thanks for your report.
- --
/*
Mit freundlichem Gruß / With kind regards,
Patrick Matthäi
E-Mail: [email protected]
Comment:
Always if we think we are right,
we were maybe wrong.
*/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkl3ZHMACgkQ2XA5inpabMcgIACgm6Zpt5RNcaK/f/opY75gqT3h
WDwAniw33RoN5bdAIqilQv3om5bBUObM
=OL/X
-----END PGP SIGNATURE-----
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]