ipcs: fix my recent breakage
authorDenis Vlasenko <vda.linux@googlemail.com>
Fri, 22 Sep 2006 08:30:52 +0000 (08:30 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Fri, 22 Sep 2006 08:30:52 +0000 (08:30 -0000)
util-linux/ipcs.c

index b49aab0..8570659 100644 (file)
@@ -581,7 +581,7 @@ int ipcs_main(int argc, char **argv)
 
        opt = bb_getopt_ulflags(argc, argv, "i:aqsmtcplu", &opt_i);
        if (opt & 0x1) { // -i
-               id = atoi(optarg);
+               id = atoi(opt_i);
                flags |= flag_print;
        }
        if (opt & 0x2) flags |= flag_msg | flag_sem | flag_shm; // -a