2006-10-18 11:41:06 -04:00
|
|
|
$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
|
2005-07-02 12:27:56 -04:00
|
|
|
@@ -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);
|
2006-10-18 11:41:06 -04:00
|
|
|
st_writebuf(ft, name_buf, 1, 96);
|
2005-07-02 12:27:56 -04:00
|
|
|
}
|
|
|
|
|