2007-10-24 18:44:22 -04:00
|
|
|
$OpenBSD: patch-ufraw_c,v 1.3 2007/10/24 22:44:22 jasper Exp $
|
|
|
|
--- ufraw.c.orig Thu Jun 7 13:42:28 2007
|
|
|
|
+++ ufraw.c Tue Oct 16 12:57:56 2007
|
|
|
|
@@ -94,9 +94,9 @@ int main (int argc, char **argv)
|
2006-09-17 13:52:38 -04:00
|
|
|
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;
|