diff options
author | Michael K. Johnson <johnsonm@redhat.com> | 1997-10-01 00:00:22 +0000 |
---|---|---|
committer | Michael K. Johnson <johnsonm@redhat.com> | 1997-10-01 00:00:22 +0000 |
commit | 50e372bfafede213d31d662abe923f667db61e15 (patch) | |
tree | 222fc97136ec542b766c35b712d1a80497b50fad | |
parent | d698eaf561087d2375a2a6cad79100669a387bc7 (diff) | |
download | initscripts-50e372bfafede213d31d662abe923f667db61e15.tar initscripts-50e372bfafede213d31d662abe923f667db61e15.tar.gz initscripts-50e372bfafede213d31d662abe923f667db61e15.tar.bz2 initscripts-50e372bfafede213d31d662abe923f667db61e15.tar.xz initscripts-50e372bfafede213d31d662abe923f667db61e15.zip |
strncmp sense reversed.
-rw-r--r-- | src/usernetctl.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 */ |