openbsd-ports/graphics/ufraw/patches/patch-ufraw_c
2006-10-28 16:48:16 +00:00

17 lines
705 B
Plaintext

$OpenBSD: patch-ufraw_c,v 1.2 2006/10/28 16:48:16 mbalmer Exp $
--- ufraw.c.orig Wed Oct 25 23:27:45 2006
+++ ufraw.c Sat Oct 28 18:39:51 2006
@@ -84,9 +84,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;