Fix more sprintf calls.

This commit is contained in:
Marc Balmer
2012-08-09 07:38:39 +02:00
committed by Jon Trulson
parent 24c0f2010c
commit 1d935059fb
5 changed files with 22 additions and 20 deletions

View File

@@ -1451,7 +1451,7 @@ _GetV4UserAccess(Calendar *cal, cms_access_entry *alist)
return (CSA_SUCCESS);
}
sprintf(buf, "%s@%s", user, localhost);
snprintf(buf, sizeof buf, "%s@%s", user, localhost);
for (; alist != NULL; alist = alist->next) {
if (strcasecmp(alist->user, "world") == 0)
worldaccess = alist->rights;