Commit d50a67c3 d50a67c39a62718057ebd8f27fbc6e95e24b89bc by Alain Magloire

* mail/util.c (util_strupper): The first implementation was

	buggy, corrected.
1 parent 05aed652
2001-07-01 Alain Magloire
* mail/util.c (util_strupper): The first implementation was
buggy, corrected.
2001-07-01 Alain Magloire
* mailbox2/pop3/*: Pop3 functions are thread-safe and cancel-safe.
The problem is monitor.h, we will probably end up doing a monitor.h.in
and set at compile time if threading is enable or not.
......
......@@ -224,6 +224,7 @@ void util_slist_add __P((list_t *list, char *value));
void util_slist_destroy __P((list_t *list));
char *util_slist_to_string __P((list_t list, char *delim));
void util_strcat __P((char **dest, char *str));
void util_strupper __P((char *str));
void util_escape_percent __P((char **str));
char *util_outfolder_name __P((char *str));
void util_save_outgoing __P((message_t msg, char *savefile));
......
......@@ -699,8 +699,10 @@ util_strupper (char *s)
{
if (s)
{
while (s++)
*s = toupper ((int)*s);
int i;
int len = strlen (s);
for (i = 0; i < len; i++)
s[i] = toupper ((int)s[i]);
}
}
......