Bugfix in imap4d.
* imap4d/util.c (util_getfullpath): Use mu_stpcpy.
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -37,7 +37,7 @@ util_getfullpath (const char *name, const char *delim) | ... | @@ -37,7 +37,7 @@ util_getfullpath (const char *name, const char *delim) |
37 | malloc (strlen (imap4d_homedir) + strlen (delim) + strlen (exp) + 1); | 37 | malloc (strlen (imap4d_homedir) + strlen (delim) + strlen (exp) + 1); |
38 | if (!s) | 38 | if (!s) |
39 | imap4d_bye (ERR_NO_MEM); | 39 | imap4d_bye (ERR_NO_MEM); |
40 | p = strcpy (s, imap4d_homedir); | 40 | p = mu_stpcpy (s, imap4d_homedir); |
41 | p = mu_stpcpy (p, (char*) delim); | 41 | p = mu_stpcpy (p, (char*) delim); |
42 | strcpy (p, exp); | 42 | strcpy (p, exp); |
43 | free (exp); | 43 | free (exp); | ... | ... |
-
Please register or sign in to post a comment