Commit c42e6194 c42e619475166b5a6385d52fa0ed5f301d9db0b8 by Sergey Poznyakoff

Bugfix in imap4d.

* imap4d/util.c (util_getfullpath): Use mu_stpcpy.
1 parent eae05c42
...@@ -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);
......