summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJihoon Jung <jh8801.jung@samsung.com>2019-12-27 23:58:32 +0900
committerJihoon Jung <jh8801.jung@samsung.com>2019-12-27 23:59:11 +0900
commit8c78cdf26ff363834e73a4aea4e934c052604142 (patch)
tree63589011db56f6b70c7b67fcf061cc188d82a7a7
parent60117931e7a056bd78c5c3485d3841d49a00e823 (diff)
downloaduser-awareness-8c78cdf26ff363834e73a4aea4e934c052604142.tar.gz
user-awareness-8c78cdf26ff363834e73a4aea4e934c052604142.tar.bz2
user-awareness-8c78cdf26ff363834e73a4aea4e934c052604142.zip
Just increased the size of buffer Change-Id: Id34aa0e44f996f2b259d9541dcef6ba00573294d Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
-rw-r--r--test/uat-common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/uat-common.c b/test/uat-common.c
index 66c5163..3019721 100644
--- 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);