22 lines
788 B
Plaintext
22 lines
788 B
Plaintext
$OpenBSD: patch-ufraw_developer_c,v 1.6 2009/10/21 22:44:52 sthen Exp $
|
|
--- ufraw_developer.c.orig Tue Oct 6 06:13:00 2009
|
|
+++ ufraw_developer.c Wed Oct 21 23:31:01 2009
|
|
@@ -50,7 +50,7 @@ developer_data *developer_init()
|
|
#endif
|
|
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;
|
|
@@ -125,7 +125,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));
|
|
}
|
|
}
|
|
|