diff options
Diffstat (limited to 'src/usernetctl.c')
-rw-r--r-- | src/usernetctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usernetctl.c b/src/usernetctl.c index bad10c96..0a8011eb 100644 --- a/src/usernetctl.c +++ b/src/usernetctl.c @@ -87,7 +87,7 @@ int userCtl(char * file) { chptr = contents; while (*chptr != '\n') chptr++; end = chptr + 1; - while (chptr > contents && isspace(*chptr)) chptr--; + while (chptr >= contents && isspace(*chptr)) chptr--; *(++chptr) = '\0'; if (!strncmp(contents, "USERCTL=", 8)) { |