diff options
author | kris <kris@FreeBSD.org> | 2000-08-04 10:23:42 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2000-08-04 10:23:42 +0000 |
commit | 09df936816f998a7db4e11d2815a2a932d4b42c5 (patch) | |
tree | 0419d65dec3936eb2b734794f99ddedfa5b86621 /lib/libc | |
parent | 3c25c673ecf15db3a95a5dfb1f5c24bda3591dd4 (diff) | |
download | FreeBSD-src-09df936816f998a7db4e11d2815a2a932d4b42c5.zip FreeBSD-src-09df936816f998a7db4e11d2815a2a932d4b42c5.tar.gz |
sprintf -> snprintf paranoia
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/getpwent.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/gen/getpwent.c b/lib/libc/gen/getpwent.c index 90dbb4a..00e6ca3 100644 --- a/lib/libc/gen/getpwent.c +++ b/lib/libc/gen/getpwent.c @@ -753,15 +753,15 @@ _getyppass(struct passwd *pw, const char *name, const char *map) } if (_gotmaster == YP_HAVE_MASTER) - sprintf(mastermap,"master.%s", map); + snprintf(mastermap, sizeof(mastermap), "master.%s", map); else - sprintf(mastermap,"%s",map); + snprintf(mastermap, sizeof(mastermap), "%s", map); if(yp_match(_pw_yp_domain, (char *)&mastermap, name, strlen(name), &result, &resultlen)) { if (_gotmaster != YP_HAVE_MASTER) return 0; - sprintf(mastermap,"%s",map); + snprintf(mastermap, sizeof(mastermap), "%s", map); if (yp_match(_pw_yp_domain, (char *)&mastermap, name, strlen(name), &result, &resultlen)) return 0; |