openbsd-ports/audio/wsoundserver/patches/patch-util_wsoundplay_c
naddy 68a1a6828b Import wsoundserver-0.4.0.
Submitted by Peter Stromberg <home@wilfried.net>.

Sound Server for Window Maker.
2001-01-09 20:59:34 +00:00

23 lines
697 B
Plaintext

$OpenBSD: patch-util_wsoundplay_c,v 1.1.1.1 2001/01/09 20:59:36 naddy Exp $
--- util/wsoundplay.c.orig Fri Mar 31 22:10:25 2000
+++ util/wsoundplay.c Tue Jan 9 20:59:01 2001
@@ -65,14 +65,14 @@ main(int argc, char **argv)
for (i = 1; i < argc; i++) {
if (strncmp(argv[i], "/", 1) != 0) {
getcwd(sndfile, sizeof(char)*MAXPATHLEN);
- strcat(sndfile, "/");
- strcat(sndfile, argv[i]);
+ strlcat(sndfile, "/", MAXPATHLEN);
+ strlcat(sndfile, argv[i], MAXPATHLEN);
if (checkForFile(sndfile) != 0) {
- strcpy(sndfile, argv[i]);
+ strlcpy(sndfile, argv[i], MAXPATHLEN);
}
}
else {
- strcpy(sndfile, argv[i]);
+ strlcpy(sndfile, argv[i], MAXPATHLEN);
}