17 lines
696 B
Plaintext
17 lines
696 B
Plaintext
$OpenBSD: patch-ufraw_c,v 1.6 2009/10/21 22:44:52 sthen Exp $
|
|
--- ufraw.c.orig Fri Aug 14 03:34:46 2009
|
|
+++ ufraw.c Wed Oct 21 23:31:01 2009
|
|
@@ -90,9 +90,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;
|