File maelstrom-3.0.6-maclib_macres.cpp.patch of Package maelstrom

--- maclib/macres.cpp.orig	2000-01-25 17:44:20.000000000 +0100
+++ maclib/macres.cpp	2014-09-28 13:16:06.215427845 +0200
@@ -58,7 +58,7 @@
 				ids[j], res->ResourceName(types[i], ids[j]));
 			if ( argv[2] ) {
 				char path[23];
-				sprintf(path,"%s/%s:%hu", argv[2],
+				snprintf(path, sizeof(path),"%s/%s:%hu", argv[2],
 							types[i], ids[j]);
 				FILE *output;
 				Mac_ResData *D;
openSUSE Build Service is sponsored by