diff options
author | Denis Kenzior <denkenz@gmail.com> | 2009-11-05 16:00:34 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-11-05 16:00:34 -0600 |
commit | 1cabf97fe8d9431efd4322ad0f608a15f40a2373 (patch) | |
tree | 81d3a8afd7d964ffd225472b29deb9c8ccddc4d3 /src | |
parent | 0cd98c5e9e598d485fe6f8164ef2486a485b2b35 (diff) | |
download | ofono-1cabf97fe8d9431efd4322ad0f608a15f40a2373.tar.bz2 |
Use localtime_r instead of localtime
Diffstat (limited to 'src')
-rw-r--r-- | src/voicecall.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/voicecall.c b/src/voicecall.c index 3c7ca5cc..ee903f12 100644 --- 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; |