projects
/
platform
/
core
/
system
/
libdbuspolicy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0d155e
)
kdbus_unique_id fix
99/84799/1
accepted/tizen/common/20160822.132920
accepted/tizen/ivi/20160822.232755
accepted/tizen/mobile/20160822.232703
accepted/tizen/tv/20160822.232720
accepted/tizen/wearable/20160822.232737
submit/tizen/20160822.114411
author
Konrad Lipinski
<konrad.l@samsung.com>
Mon, 22 Aug 2016 11:19:38 +0000
(13:19 +0200)
committer
Konrad Lipinski
<konrad.l@samsung.com>
Mon, 22 Aug 2016 11:20:50 +0000
(13:20 +0200)
Change-Id: Ice25972fdc38e032f8d06ccb66eec8e3f202337a
src/libdbuspolicy1.c
patch
|
blob
|
history
diff --git
a/src/libdbuspolicy1.c
b/src/libdbuspolicy1.c
index
d37d285
..
f214ca9
100644
(file)
--- a/
src/libdbuspolicy1.c
+++ b/
src/libdbuspolicy1.c
@@
-104,12
+104,12
@@
static bool kdbus_is_unique_id(const char* name)
static uint64_t kdbus_unique_id(char const *name)
{
uint64_t res;
- unsigned i =
2
;
+ unsigned i =
1
;
int c;
while (!(c = name[++i] - '0'));
- res = (u
int64_t
)c;
- while ((c =
(int)(name[++i]) - '0') >
0)
- res = res*10 + c;
+ res = (u
nsigned
)c;
+ while ((c =
name[++i] - '0') >=
0)
+ res = res*10 +
(unsigned)
c;
return res;
}