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
This commit is contained in:
committed by
Peter Williams
parent
1c2a1b3974
commit
b45d088235
@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user