openbsd-ports/graphics/ufraw/patches/patch-ufraw_c
phessler e2e139a8a4 Update to ufraw-0.13
many changes and fixes, including extended EXIF support, and option to
save as png 8 or 16 bits.

originally from sthen@, with tweaks by me
ok merdely@
"if it makes sense, commit it" mbalmer@
2008-06-07 05:31:41 +00:00

17 lines
699 B
Plaintext

$OpenBSD: patch-ufraw_c,v 1.4 2008/06/07 05:31:41 phessler Exp $
--- ufraw.c.orig Sun Nov 11 02:04:39 2007
+++ ufraw.c Sat Dec 29 12:15:06 2007
@@ -85,9 +85,9 @@ int main (int argc, char **argv)
if (strlen(cmd.inputFilename)>0) {
status = conf_load(&conf, cmd.inputFilename);
if (status==UFRAW_SUCCESS) {
- strcpy(conf.inputFilename, "");
- strcpy(conf.outputFilename, "");
- strcpy(conf.outputPath, "");
+ strlcpy(conf.inputFilename, "", sizeof(conf.inputFilename));
+ strlcpy(conf.outputFilename, "", sizeof(conf.outputFilename));
+ strlcpy(conf.outputPath, "", sizeof(conf.outputPath));
} else {
ufraw_message(UFRAW_REPORT, NULL);
conf.version = 0;