From 50e372bfafede213d31d662abe923f667db61e15 Mon Sep 17 00:00:00 2001 From: "Michael K. Johnson" Date: Wed, 1 Oct 1997 00:00:22 +0000 Subject: strncmp sense reversed. --- src/usernetctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/usernetctl.c b/src/usernetctl.c index ece0544b..453bc741 100644 --- a/src/usernetctl.c +++ b/src/usernetctl.c @@ -135,8 +135,9 @@ int main(int argc, char ** argv) { } /* automatically prepend "ifcfg-" if it is not specified */ - if (!strncmp(ifaceConfig, "ifcfg-", 6)) { + if (strncmp(ifaceConfig, "ifcfg-", 6)) { char *temp; + temp = (char *) alloca(strlen(ifaceConfig) + 7); strcpy(temp, "ifcfg-"); /* strcat is safe because we got the length from strlen */ -- cgit