Revert "libsmack: Terminate attribute string"
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Thu, 5 Jun 2014 16:22:23 +0000 (19:22 +0300)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Thu, 5 Jun 2014 16:22:23 +0000 (19:22 +0300)
This reverts commit cbdd52af82bce9d2ab79e43e0757c4d077d08907.

libsmack/libsmack.c

index cdc872f..b705780 100644 (file)
@@ -637,9 +637,6 @@ ssize_t smack_new_label_from_path(const char *path, const char *xattr,
        if (result == NULL)
                return -1;
 
-       /* It is possible that the attribute is not terminated */
-       buf[ret] = '\0';
-
        ret = get_label(result, buf, NULL);
        if (ret < 0) {
                free(result);