diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.cc b/src/main.cc index b458fbf..00bc163 100644 --- a/src/main.cc +++ b/src/main.cc | |||
@@ -312,7 +312,11 @@ int main(int argc, char **argv) { | |||
312 | 312 | ||
313 | // fall back in case the above execlp doesn't work | 313 | // fall back in case the above execlp doesn't work |
314 | execvp(argv[0], argv); | 314 | execvp(argv[0], argv); |
315 | execvp(FbTk::StringUtil::basename(argv[0]).c_str(), argv); | 315 | perror(argv[0]); |
316 | |||
317 | const char *basename = FbTk::StringUtil::basename(argv[0]).c_str(); | ||
318 | execvp(basename, argv); | ||
319 | perror(basename); | ||
316 | } | 320 | } |
317 | 321 | ||
318 | return exitcode; | 322 | return exitcode; |