projects
/
platform
/
upstream
/
smack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aee22e7
)
Fixed sprintf() for outputting the short label.
author
Jarkko Sakkinen
<ext-jarkko.2.sakkinen@nokia.com>
Fri, 3 Dec 2010 13:28:22 +0000
(
05:28
-0800)
committer
Jarkko Sakkinen
<ext-jarkko.2.sakkinen@nokia.com>
Fri, 3 Dec 2010 13:28:22 +0000
(
05:28
-0800)
src/smack_labels.c
patch
|
blob
|
history
diff --git
a/src/smack_labels.c
b/src/smack_labels.c
index
ee3e7f3
..
a86fb5b
100644
(file)
--- a/
src/smack_labels.c
+++ b/
src/smack_labels.c
@@
-139,7
+139,7
@@
const char *smack_label_set_add(SmackLabelSet handle, const char *long_name)
h = ((h << 5) + h) + c;
}
- sprintf(short_name, "%0
4
X", h);
+ sprintf(short_name, "%0
8
X", h);
l = add_label(&handle->label_by_long_name, &handle->label_by_short_name,
long_name, short_name);