diff options
| author | 2002-05-29 09:45:39 +0000 | |
|---|---|---|
| committer | 2002-05-29 09:45:39 +0000 | |
| commit | 8c069c7552e2bc1e8930abef5a2e3ef0887b0087 (patch) | |
| tree | 5f5ec2bfb49ab948d53b5034b941d9e293b939d8 /usr.sbin/config/strerror.c | |
| parent | more sprintf (diff) | |
| download | wireguard-openbsd-8c069c7552e2bc1e8930abef5a2e3ef0887b0087.tar.xz wireguard-openbsd-8c069c7552e2bc1e8930abef5a2e3ef0887b0087.zip | |
more snprintf
Diffstat (limited to 'usr.sbin/config/strerror.c')
| -rw-r--r-- | usr.sbin/config/strerror.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/config/strerror.c b/usr.sbin/config/strerror.c index 2d3eb60068b..72cf0d6fbef 100644 --- a/usr.sbin/config/strerror.c +++ b/usr.sbin/config/strerror.c @@ -14,6 +14,6 @@ char *strerror(en) if ((0 <= en) && (en < sys_nerr)) return sys_errlist[en]; - sprintf(errmsg, "Error %d", en); + snprintf(errmsg, sizeof errmsg, "Error %d", en); return errmsg; } |
