Fixed sprintf() for outputting the short label.
authorJarkko Sakkinen <ext-jarkko.2.sakkinen@nokia.com>
Fri, 3 Dec 2010 13:28:22 +0000 (05:28 -0800)
committerJarkko Sakkinen <ext-jarkko.2.sakkinen@nokia.com>
Fri, 3 Dec 2010 13:28:22 +0000 (05:28 -0800)
src/smack_labels.c

index ee3e7f3..a86fb5b 100644 (file)
@@ -139,7 +139,7 @@ const char *smack_label_set_add(SmackLabelSet handle, const char *long_name)
                h = ((h << 5) + h) + c;
        }
 
-       sprintf(short_name, "%04X", h);
+       sprintf(short_name, "%08X", h);
 
        l  = add_label(&handle->label_by_long_name, &handle->label_by_short_name,
                       long_name, short_name);