diff options
-rw-r--r-- | src/firejail/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/firejail/util.c b/src/firejail/util.c index 9ad7271ba..3e0729620 100644 --- a/src/firejail/util.c +++ b/src/firejail/util.c | |||
@@ -552,9 +552,9 @@ void extract_command_name(int index, char **argv) { | |||
552 | if (!tmp) | 552 | if (!tmp) |
553 | errExit("strdup"); | 553 | errExit("strdup"); |
554 | 554 | ||
555 | // limit the command to the first '.' | 555 | // limit the command to the first ' ' |
556 | char *ptr2 = tmp; | 556 | char *ptr2 = tmp; |
557 | while (*ptr2 != '.' && *ptr2 != '\0') | 557 | while (*ptr2 != ' ' && *ptr2 != '\0') |
558 | ptr2++; | 558 | ptr2++; |
559 | *ptr2 = '\0'; | 559 | *ptr2 = '\0'; |
560 | 560 | ||