freebsd-ports/games/maelstrom/files/patch-maclib__snd2wav.cpp
Rusmir Dusko 49576030c2 - Change master sites
- Add DOCS Option
- Support STAGEDIR, change DESTDIR
- Change Desktop entry file
- Disable all warnings with -w
- Recreate patches with make makepatch

Approved by:	pawel / wg (mentors, implicit)
2013-12-28 16:11:08 +00:00

11 lines
335 B
C++

--- ./maclib/snd2wav.cpp.orig 2001-03-28 05:54:50.000000000 +0200
+++ ./maclib/snd2wav.cpp 2013-12-28 11:39:16.000000000 +0100
@@ -82,7 +82,7 @@
continue;
}
wave.Load(snd, rate);
- sprintf(wavname, "snd_%d.wav", ids[i]);
+ snprintf(wavname, sizeof(wavname), "snd_%d.wav", ids[i]);
wave.Save(wavname);
}
delete macx;