aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Williams <peterw@ximian.com>2001-08-23 05:26:29 +0800
committerPeter Williams <peterw@src.gnome.org>2001-08-23 05:26:29 +0800
commitb45d088235f3dbe63baf3940edc32016923fa52b (patch)
treeae7075e405ee2345f4e1f3a09faae7aa1a7c8fb4
parent1c2a1b397488bd61ee1cd69ff6ebf8a98b5898b8 (diff)
downloadgsoc2013-evolution-b45d088235f3dbe63baf3940edc32016923fa52b.tar.gz
gsoc2013-evolution-b45d088235f3dbe63baf3940edc32016923fa52b.tar.zst
gsoc2013-evolution-b45d088235f3dbe63baf3940edc32016923fa52b.zip
We don't need to escape this for printf'ing.
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. svn path=/trunk/; revision=12394
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-send-recv.c15
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;
}