* mail/util.c (util_strupper): The first implementation was
buggy, corrected.
Showing
3 changed files
with
10 additions
and
2 deletions
1 | 2001-07-01 Alain Magloire | 1 | 2001-07-01 Alain Magloire |
2 | 2 | ||
3 | * mail/util.c (util_strupper): The first implementation was | ||
4 | buggy, corrected. | ||
5 | |||
6 | 2001-07-01 Alain Magloire | ||
7 | |||
3 | * mailbox2/pop3/*: Pop3 functions are thread-safe and cancel-safe. | 8 | * mailbox2/pop3/*: Pop3 functions are thread-safe and cancel-safe. |
4 | The problem is monitor.h, we will probably end up doing a monitor.h.in | 9 | The problem is monitor.h, we will probably end up doing a monitor.h.in |
5 | and set at compile time if threading is enable or not. | 10 | 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)); | ... | @@ -224,6 +224,7 @@ void util_slist_add __P((list_t *list, char *value)); |
224 | void util_slist_destroy __P((list_t *list)); | 224 | void util_slist_destroy __P((list_t *list)); |
225 | char *util_slist_to_string __P((list_t list, char *delim)); | 225 | char *util_slist_to_string __P((list_t list, char *delim)); |
226 | void util_strcat __P((char **dest, char *str)); | 226 | void util_strcat __P((char **dest, char *str)); |
227 | void util_strupper __P((char *str)); | ||
227 | void util_escape_percent __P((char **str)); | 228 | void util_escape_percent __P((char **str)); |
228 | char *util_outfolder_name __P((char *str)); | 229 | char *util_outfolder_name __P((char *str)); |
229 | void util_save_outgoing __P((message_t msg, char *savefile)); | 230 | void util_save_outgoing __P((message_t msg, char *savefile)); | ... | ... |
... | @@ -699,8 +699,10 @@ util_strupper (char *s) | ... | @@ -699,8 +699,10 @@ util_strupper (char *s) |
699 | { | 699 | { |
700 | if (s) | 700 | if (s) |
701 | { | 701 | { |
702 | while (s++) | 702 | int i; |
703 | *s = toupper ((int)*s); | 703 | int len = strlen (s); |
704 | for (i = 0; i < len; i++) | ||
705 | s[i] = toupper ((int)s[i]); | ||
704 | } | 706 | } |
705 | } | 707 | } |
706 | 708 | ... | ... |
-
Please register or sign in to post a comment