diff options
-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 453bc741..81401dae 100644 --- a/src/usernetctl.c +++ b/src/usernetctl.c @@ -90,7 +90,7 @@ int userCtl(char * file) { while (chptr > contents && isspace(*chptr)) chptr--; *(++chptr) = '\0'; - if (!strcmp(contents, "USERCTL=")) { + if (!strncmp(contents, "USERCTL=", 8)) { if (!strcmp(contents+8, "yes")) return FOUND_TRUE; else return FOUND_FALSE; } |