From b45d088235f3dbe63baf3940edc32016923fa52b Mon Sep 17 00:00:00 2001 From: Peter Williams Date: Wed, 22 Aug 2001 21:26:29 +0000 Subject: We don't need to escape this for printf'ing. 2001-08-22 Peter Williams * mail-send-recv.c (set_send_status): We don't need to escape this for printf'ing. svn path=/trunk/; revision=12394 --- mail/ChangeLog | 5 +++++ mail/mail-send-recv.c | 15 +-------------- 2 files changed, 6 insertions(+), 14 deletions(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index 66673e48bb..78cbb77ac6 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2001-08-22 Peter Williams + + * mail-send-recv.c (set_send_status): We don't need to escape this + for printf'ing. + 2001-08-22 Peter Williams Prevent the user from creating two accounts with the same name. diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c index d47d69d278..af2390b2b0 100644 --- a/mail/mail-send-recv.c +++ b/mail/mail-send-recv.c @@ -412,22 +412,9 @@ update_folders(char *uri, struct _folder_info *info, void *data) static void set_send_status(struct _send_info *info, const char *desc, int pc) { - const char *p; - char *out, *o, c; - - out = alloca(strlen(desc)*2+1); - o = out; - p = desc; - while ((c = *p++)) { - if (c=='%') - *o++ = '%'; - *o++ = c; - } - *o = 0; - /* FIXME: LOCK */ g_free(info->what); - info->what = g_strdup(out); + info->what = g_strdup(desc); info->pc = pc; } -- cgit