projects
/
platform
/
core
/
security
/
cynara.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74e95bd
)
Use proper printf length modifier for sizeof()
71/24571/1
author
Rafal Krypa
<r.krypa@samsung.com>
Wed, 9 Jul 2014 14:24:10 +0000
(16:24 +0200)
committer
Bartlomiej Grzelewski
<b.grzelewski@samsung.com>
Wed, 16 Jul 2014 12:58:40 +0000
(14:58 +0200)
Printing sizeof value needs %zu, not %u.
Change-Id: I0d1cf2b9bfb8956e4377eccf70f24f6bfbe5bc4d
src/common/sockets/Socket.cpp
patch
|
blob
|
history
diff --git
a/src/common/sockets/Socket.cpp
b/src/common/sockets/Socket.cpp
index
81be8d4
..
5149d17
100644
(file)
--- a/
src/common/sockets/Socket.cpp
+++ b/
src/common/sockets/Socket.cpp
@@
-132,7
+132,7
@@
bool Socket::connect(void) {
if (m_socketPath.length() >= sizeof(clientAddr.sun_path)) {
close();
- LOGE("Error: socket path <%s> is too long [%zu]. Max len is [%u]", m_socketPath.c_str(),
+ LOGE("Error: socket path <%s> is too long [%zu]. Max len is [%
z
u]", m_socketPath.c_str(),
m_socketPath.length(), sizeof(clientAddr.sun_path));
throw InitException();
}