diff options
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 5 | ||||
-rw-r--r-- | mail/mail-send-recv.c | 15 |
2 files changed, 6 insertions, 14 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 66673e48bb..78cbb77ac6 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,5 +1,10 @@ 2001-08-22 Peter Williams <peterw@ximian.com> + * mail-send-recv.c (set_send_status): We don't need to escape this + for printf'ing. + +2001-08-22 Peter Williams <peterw@ximian.com> + Prevent the user from creating two accounts with the same name. * mail-config.c (impl_GNOME_Evolution_MailConfig_addAccount): Abort 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; } |