$OpenBSD: patch-olympus_c,v 1.2 2005/11/14 17:39:03 pvalchev Exp $ --- olympus.c.orig 2004-05-03 11:49:52.000000000 -0700 +++ olympus.c 2004-05-03 11:58:11.000000000 -0700 @@ -144,16 +144,16 @@ olympus_prop(struct exifprop *prop, stru b = exif4byte(t->md.btiff + prop->value + 4, t->md.order); if (a == b) - snprintf(prop->str, 31, "None"); + snprintf(prop->str, PROPSTR_SIZE, "None"); else - snprintf(prop->str, 31, "x%.1f", (float)a / (float)b); + snprintf(prop->str, PROPSTR_SIZE, "x%.1f", (float)a / (float)b); break; /* Image number. */ case 0x0008: - exifstralloc(&prop->str, 32); - snprintf(prop->str, 31, "%03d-%04d", prop->value / 10000, + exifstralloc(&prop->str, PROPSTR_SIZE); + snprintf(prop->str, PROPSTR_SIZE, "%03d-%04d", prop->value / 10000, prop->value % 10000); break; }