projects
/
platform
/
core
/
api
/
user-awareness.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6011793
)
Fix format-truncation warning for gcc 9
02/221102/1
accepted/tizen/unified/20191230.050156
submit/tizen/20191230.005459
author
Jihoon Jung
<jh8801.jung@samsung.com>
Fri, 27 Dec 2019 14:58:32 +0000
(23:58 +0900)
committer
Jihoon Jung
<jh8801.jung@samsung.com>
Fri, 27 Dec 2019 14:59:11 +0000
(23:59 +0900)
Just increased the size of buffer
Change-Id: Id34aa0e44f996f2b259d9541dcef6ba00573294d
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
test/uat-common.c
patch
|
blob
|
history
diff --git
a/test/uat-common.c
b/test/uat-common.c
index 66c5163782c913cc50553c92853a8af8ce99115e..301972173f66165f62932be7550b226a7bd9d77a 100644
(file)
--- a/
test/uat-common.c
+++ b/
test/uat-common.c
@@
-140,14
+140,14
@@
char* uat_get_time()
time_t t;
struct tm time_deysel;
- char *pbuf = calloc(
20
, sizeof(char));
+ char *pbuf = calloc(
128
, sizeof(char));
if (!pbuf)
return NULL;
t = time(NULL);
localtime_r(&t, &time_deysel);
- snprintf(pbuf,
20
, "%04d-%02d-%02d %02d:%02d:%02d",
+ snprintf(pbuf,
128
, "%04d-%02d-%02d %02d:%02d:%02d",
time_deysel.tm_year + 1900, time_deysel.tm_mon + 1, time_deysel.tm_mday,
time_deysel.tm_hour, time_deysel.tm_min, time_deysel.tm_sec);