# HG changeset patch # User js # Date 1180880204 25200 # Node ID a03aec49af4dcdeda900044b4950ea8c3dd33366 # Parent 382545522a143045d792e280df6c318c8bb4e36f [svn] Replace sprintf with snprintf. diff -r 382545522a14 -r a03aec49af4d ChangeLog --- a/ChangeLog Fri Jun 01 16:03:58 2007 -0700 +++ b/ChangeLog Sun Jun 03 07:16:44 2007 -0700 @@ -1,3 +1,11 @@ +2007-06-01 23:03:58 +0000 Jonathan Schleifer + revision [2482] + Revert r2480, thanks to FreeBSD. + + trunk/mk/objective.mk | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + + 2007-06-01 22:48:43 +0000 Jonathan Schleifer revision [2480] Same as r4658 in Audacious. diff -r 382545522a14 -r a03aec49af4d src/wavpack/tags.cxx --- a/src/wavpack/tags.cxx Fri Jun 01 16:03:58 2007 -0700 +++ b/src/wavpack/tags.cxx Sun Jun 03 07:16:44 2007 -0700 @@ -383,7 +383,7 @@ if (fp == NULL) { char text[256]; - sprintf(text, "File \"%s\" not found or is read protected!\n", + snprintf(text, 256, "File \"%s\" not found or is read protected!\n", filename); xmms_show_message("File-Error", (gchar *) text, "Ok", FALSE, NULL, NULL);