openbsd-ports/graphics/ufraw/patches/patch-ufraw_developer_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

22 lines
808 B
Plaintext

$OpenBSD: patch-ufraw_developer_c,v 1.4 2008/06/07 05:31:41 phessler Exp $
--- ufraw_developer.c.orig Sun Nov 11 02:28:56 2007
+++ ufraw_developer.c Sat Dec 29 12:21:29 2007
@@ -42,7 +42,7 @@ developer_data *developer_init()
d->saturation = -1;
for (i=0; i<profile_types; i++) {
d->profile[i] = NULL;
- strcpy(d->profileFile[i],"no such file");
+ strlcpy(d->profileFile[i],"no such file",sizeof(d->profileFile[i]));
}
memset(&d->baseCurveData, 0, sizeof(d->baseCurveData));
d->baseCurveData.m_gamma = -1.0;
@@ -105,7 +105,7 @@ void developer_profile(developer_data *d, int type, pr
g_strlcpy(p->productName, cmsTakeProductName(d->profile[type]),
max_name);
else
- strcpy(p->productName, "");
+ strlcpy(p->productName, "",sizeof(p->productName));
}
}