]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - attribute.c
Fix off-by-one in com_rmatt().
[paraslash.git] / attribute.c
index 66312b2acb06f5a5919c5a04198db2cae2f0b34a..5ee0789d0bca2c8b39852e187ecb54d7fd5f31a2 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);
 }
 
@@ -373,7 +373,7 @@ int com_rmatt(__a_unused int fd, int argc, char * const * const argv)
  * \param buf Result.
  *
  * This function prints a string of at most 64 characters plus the terminating
- * \p NULL character into \buf which must be provided by the caller and at
+ * \p NULL character into \buf which must be provided by the caller and at
  * least 65 bytes long. The "x" character is used for set attributes and "-" is
  * used for unset attributes.
  *