diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2003-08-10 01:21:09 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2003-08-10 01:21:09 +0000 |
commit | 01b2e2ca409029c29c47bd9ec10faf18290ca9a9 (patch) | |
tree | 6bac9c4575c2bf8198d209271748e7a7737b0b36 /gnu/egcs | |
parent | feb084f22778794a92454fc92b6b5029f49f5186 (diff) |
sprintf -> snprintf, okay millert@.
Diffstat (limited to 'gnu/egcs')
-rw-r--r-- | gnu/egcs/libiberty/strerror.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/egcs/libiberty/strerror.c b/gnu/egcs/libiberty/strerror.c index 644cc75462a..ae7e29bfa89 100644 --- a/gnu/egcs/libiberty/strerror.c +++ b/gnu/egcs/libiberty/strerror.c @@ -656,7 +656,7 @@ strerror (errnoval) else if ((sys_errlist == NULL) || (sys_errlist[errnoval] == NULL)) { /* In range, but no sys_errlist or no entry at this index. */ - sprintf (buf, "Error %d", errnoval); + snprintf (buf, sizeof buf, "Error %d", errnoval); msg = buf; } else @@ -727,7 +727,7 @@ strerrno (errnoval) else if ((error_names == NULL) || (error_names[errnoval] == NULL)) { /* In range, but no error_names or no entry at this index. */ - sprintf (buf, "Error %d", errnoval); + snprintf (buf, sizeof buf, "Error %d", errnoval); name = (const char *) buf; } else |