forked from pool/ufraw
- Add Fix-build-with-GCC9.patch - Refresh patches, use %autosetup - Run spec-cleaner OBS-URL: https://build.opensuse.org/request/show/705889 OBS-URL: https://build.opensuse.org/package/show/graphics/ufraw?expand=0&rev=50
17 lines
603 B
Diff
17 lines
603 B
Diff
diff --git a/dcraw.cc b/dcraw.cc
|
|
index 88c8068..de03771 100644
|
|
--- a/dcraw.cc
|
|
+++ b/dcraw.cc
|
|
@@ -8992,9 +8992,9 @@ void CLASS identify()
|
|
if (!strncasecmp(model,"PENTAX",6))
|
|
strcpy (make, "Pentax");
|
|
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);
|