diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2000-08-22 01:51:37 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2000-08-22 01:51:37 +0000 |
| commit | 324aacdd9c4d571d1fec5a4ffc04fffecd951202 (patch) | |
| tree | 3a3e2850e8738407c429af96952771fcd491a343 /lib/libc | |
| parent | 203fc2278830e7fd672d7c13e6dfa9a22fe15d89 (diff) | |
Notes
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 90dbb4a24cf5..00e6ca39c69f 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; |
