openbsd-ports/audio/sox/patches/patch-src_misc_c
2006-10-18 15:41:06 +00:00

13 lines
481 B
Plaintext

$OpenBSD: patch-src_misc_c,v 1.2 2006/10/18 15:41:06 naddy Exp $
--- src/misc.c.orig Mon Aug 28 01:48:49 2006
+++ src/misc.c Wed Oct 18 16:25:00 2006
@@ -481,7 +481,7 @@ const char *st_version()
{
static char versionstr[20];
- sprintf(versionstr, "%d.%d.%d",
+ snprintf(versionstr, sizeof(versionstr), "%d.%d.%d",
(ST_LIB_VERSION_CODE & 0xff0000) >> 16,
(ST_LIB_VERSION_CODE & 0x00ff00) >> 8,
(ST_LIB_VERSION_CODE & 0x0000ff));