diff options
author | 2003-07-31 21:48:02 +0000 | |
---|---|---|
committer | 2003-07-31 21:48:02 +0000 | |
commit | db3296cf5c1dd9058ceecc3a29fe4aaa0bd26000 (patch) | |
tree | 24a628e1f5d78508c3b3f7895685e06ffb25a794 /regress/lib/libc/regex/debug.c | |
parent | delint (diff) | |
download | wireguard-openbsd-db3296cf5c1dd9058ceecc3a29fe4aaa0bd26000.tar.xz wireguard-openbsd-db3296cf5c1dd9058ceecc3a29fe4aaa0bd26000.zip |
various cleanups; david says results are same
Diffstat (limited to 'regress/lib/libc/regex/debug.c')
-rw-r--r-- | regress/lib/libc/regex/debug.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/lib/libc/regex/debug.c b/regress/lib/libc/regex/debug.c index 7834e970c7b..11129e7249d 100644 --- a/regress/lib/libc/regex/debug.c +++ b/regress/lib/libc/regex/debug.c @@ -1,4 +1,4 @@ -/* $OpenBSD: debug.c,v 1.3 2001/01/29 02:05:43 niklas Exp $ */ +/* $OpenBSD: debug.c,v 1.4 2003/07/31 21:48:03 deraadt Exp $ */ /* $NetBSD: debug.c,v 1.2 1995/04/20 22:39:42 cgd Exp $ */ #include <stdio.h> @@ -238,8 +238,8 @@ int ch; static char buf[10]; if (isprint(ch) || ch == ' ') - sprintf(buf, "%c", ch); + snprintf(buf, sizeof buf, "%c", ch); else - sprintf(buf, "\\%o", ch); + snprintf(buf, sizeof buf, "\\%o", ch); return(buf); } |