diff options
| author | Roy Marples <roy@marples.name> | 2008-09-15 16:43:57 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2008-09-15 16:43:57 +0000 |
| commit | 4f35e21b38d919fd01c5f6007abde438f88b6d4f (patch) | |
| tree | afb69be0b2b1f90180820574fa547e24412261e7 /dhcpcd.c | |
| parent | 5c957ca3d31c126fbd173f1191712687068a47c8 (diff) | |
| download | dhcpcd-4f35e21b38d919fd01c5f6007abde438f88b6d4f.tar.xz | |
Fix segfault when passing options in.
Diffstat (limited to 'dhcpcd.c')
| -rw-r--r-- | dhcpcd.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1016,9 +1016,7 @@ handle_args(int argc, char **argv) return 0; } - if ((ifs = discover_interfaces(argc, argv))) { - argc += optind; - argv -= optind; + if ((ifs = discover_interfaces(argc - optind, argv + optind))) { for (ifp = ifs; ifp; ifp = ifp->next) { ifl = NULL; for (ifn = ifaces; ifn; ifn = ifn->next) { |
