File ufraw-boundary.patch of Package ufraw
Index: dcraw.cc
===================================================================
--- dcraw.cc.orig
+++ dcraw.cc
@@ -7590,11 +7590,11 @@ void CLASS identify()
(cp = strstr(model," Digital Camera")) ||
(cp = strstr(model,"FILE VERSION"))))
*cp = 0;
cp = make + strlen(make); /* Remove trailing spaces */
- while (*--cp == ' ') *cp = 0;
+ while (cp > make && *--cp == ' ') *cp = 0;
cp = model + strlen(model);
- while (*--cp == ' ') *cp = 0;
+ while (cp > model && *--cp == ' ') *cp = 0;
i = strlen(make); /* Remove make from model */
if (!strncasecmp (model, make, i) && model[i++] == ' ')
memmove (model, model+i, 64-i);
if (!strncmp (model,"FinePix ",8))