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

@@ -124,7 +124,7 @@ _DtCmIsSameUser(char *user1, char *user2)
/* assume user2=user@host[.domain] */
if (str1 == NULL) {
str1 = strchr(user1, '@');
sprintf(buf, "%s.%s", ++str1, domain);
snprintf(buf, sizeof buf, "%s.%s", ++str1, domain);
str1 = buf;
} else {
str1 = strchr(user1, '@');