diff options
author | 2002-05-25 09:11:02 +0000 | |
---|---|---|
committer | 2002-05-25 09:11:02 +0000 | |
commit | c364cbbdefb4b1e76b29966d1fbbdaef832cf886 (patch) | |
tree | ef13a76e586d0df0d67e6512b11b6fa05bc80d43 /lib/libc/regex/engine.c | |
parent | execlp->execl; from stevesk (diff) | |
download | wireguard-openbsd-c364cbbdefb4b1e76b29966d1fbbdaef832cf886.tar.xz wireguard-openbsd-c364cbbdefb4b1e76b29966d1fbbdaef832cf886.zip |
remaining easy snprintf conversions
Diffstat (limited to 'lib/libc/regex/engine.c')
-rw-r--r-- | lib/libc/regex/engine.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/regex/engine.c b/lib/libc/regex/engine.c index d5f0d2f3e84..c272093217d 100644 --- a/lib/libc/regex/engine.c +++ b/lib/libc/regex/engine.c @@ -1,4 +1,4 @@ -/* $OpenBSD: engine.c,v 1.5 2002/02/16 21:27:24 millert Exp $ */ +/* $OpenBSD: engine.c,v 1.6 2002/05/25 09:11:02 deraadt Exp $ */ /*- * Copyright (c) 1992, 1993, 1994 Henry Spencer. @@ -40,7 +40,7 @@ */ #if defined(SNAMES) && defined(LIBC_SCCS) && !defined(lint) -static char enginercsid[] = "$OpenBSD: engine.c,v 1.5 2002/02/16 21:27:24 millert Exp $"; +static char enginercsid[] = "$OpenBSD: engine.c,v 1.6 2002/05/25 09:11:02 deraadt Exp $"; #endif /* SNAMES and LIBC_SCCS and not lint */ /* @@ -1078,9 +1078,9 @@ int ch; static char pbuf[10]; if (isprint(ch) || ch == ' ') - (void)sprintf(pbuf, "%c", ch); + (void)snprintf(pbuf, sizeof pbuf, "%c", ch); else - (void)sprintf(pbuf, "\\%o", ch); + (void)snprintf(pbuf, sizeof pbuf, "\\%o", ch); return(pbuf); } #endif |