Fix off-by-one in com_rmatt().
authorAndre Noll <maan@systemlinux.org>
Sat, 22 Sep 2007 08:18:33 +0000 (10:18 +0200)
committerAndre Noll <maan@systemlinux.org>
Sat, 22 Sep 2007 08:18:33 +0000 (10:18 +0200)
attribute.c

index 9a7cb45..5ee0789 100644 (file)
@@ -362,7 +362,7 @@ int com_rmatt(__a_unused int fd, int argc, char * const * const argv)
 {
        if (argc < 2)
                return -E_ATTR_SYNTAX;
-       return send_standard_callback_request(argc, argv, com_rmatt_callback,
+       return send_standard_callback_request(argc - 1, argv + 1, com_rmatt_callback,
                NULL);
 }