aboutsummaryrefslogtreecommitdiff
path: root/src/rfc2015.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-03-17 10:02:26 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-03-17 10:02:26 +0000
commit959bdb992afe0d2964381255da7f7eab6aa9de61 (patch)
tree37d5b8594be5d15c91faa9e34525b6938e938650 /src/rfc2015.c
parent6127a936645cf2d2d4fcdfd1461f4d1f7268a3b7 (diff)
made every code conversion API allocate new memory.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@180 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/rfc2015.c')
-rw-r--r--src/rfc2015.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rfc2015.c b/src/rfc2015.c
index 7496e38a..1a12d35c 100644
--- a/src/rfc2015.c
+++ b/src/rfc2015.c
@@ -157,7 +157,8 @@ sig_status_full (gpgme_ctx_t ctx, gpgme_verify_result_t result)
gpgme_signature_t sig;
time_t created;
struct tm *ctime_val;
- char ctime_str[80], ctime_str_utf8[80];
+ gchar ctime_str[80];
+ gchar *ctime_str_utf8;
gchar *retval;
str = g_string_new ("");
@@ -169,11 +170,11 @@ sig_status_full (gpgme_ctx_t ctx, gpgme_verify_result_t result)
ctime_val = localtime (&created);
strftime (ctime_str, sizeof (ctime_str), "%c",
ctime_val);
- conv_localetodisp (ctime_str_utf8,
- sizeof (ctime_str_utf8), ctime_str);
+ ctime_str_utf8 = conv_localetodisp (ctime_str);
g_string_sprintfa (str,
_("Signature made at %s\n"),
ctime_str_utf8);
+ g_free (ctime_str_utf8);
}
sig_status_for_key(str, ctx, sig);
if (sig->next)