mirror of
https://git.freebsd.org/ports.git
synced 2025-05-29 01:16:28 -04:00
- 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)
13 lines
482 B
C++
13 lines
482 B
C++
--- ./maclib/macres.cpp.orig 2000-01-25 17:44:20.000000000 +0100
|
|
+++ ./maclib/macres.cpp 2013-12-28 11:39:16.000000000 +0100
|
|
@@ -58,8 +58,8 @@
|
|
ids[j], res->ResourceName(types[i], ids[j]));
|
|
if ( argv[2] ) {
|
|
char path[23];
|
|
- sprintf(path,"%s/%s:%hu", argv[2],
|
|
- types[i], ids[j]);
|
|
+ snprintf(path, sizeof(path), "%s/%s:%hu",
|
|
+ argv[2], types[i], ids[j]);
|
|
FILE *output;
|
|
Mac_ResData *D;
|
|
if ( (output=fopen(path, "w")) != NULL ) {
|