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

14 lines
532 B
Plaintext

$OpenBSD: patch-src_sndrtool_c,v 1.2 2006/10/18 15:41:06 naddy Exp $
--- src/sndrtool.c.orig Sat Sep 2 04:12:36 2006
+++ src/sndrtool.c Wed Oct 18 16:27:38 2006
@@ -252,7 +252,8 @@ static void sndtwriteheader(ft_t ft, st_
st_writew (ft,10);
st_writew (ft,4);
memset (name_buf, 0, 96);
- sprintf (name_buf,"%.62s - File created by Sound Exchange",ft->filename);
+ snprintf (name_buf, sizeof(name_buf),
+ "%.62s - File created by Sound Exchange", ft->filename);
st_writebuf(ft, name_buf, 1, 96);
}