projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0cd98c5
)
Use localtime_r instead of localtime
author
Denis Kenzior
<denkenz@gmail.com>
Thu, 5 Nov 2009 22:00:34 +0000
(16:00 -0600)
committer
Denis Kenzior
<denkenz@gmail.com>
Thu, 5 Nov 2009 22:00:34 +0000
(16:00 -0600)
src/voicecall.c
patch
|
blob
|
history
diff --git
a/src/voicecall.c
b/src/voicecall.c
index
3c7ca5c
..
ee903f1
100644
(file)
--- a/
src/voicecall.c
+++ b/
src/voicecall.c
@@
-158,8
+158,9
@@
static const char *phone_and_clip_to_string(const struct ofono_phone_number *n,
static const char *time_to_str(const time_t *t)
{
static char buf[128];
+ struct tm tm;
- strftime(buf, 127, "%Y-%m-%dT%H:%M:%S%z", localtime
(t
));
+ strftime(buf, 127, "%Y-%m-%dT%H:%M:%S%z", localtime
_r(t, &tm
));
buf[127] = '\0';
return buf;