sane-backends/sane-backends-1.0.12-badcode.patch

14 lines
347 B
Diff
Raw Normal View History

--- sane-backends-1.0.12/backend/canon-sane.c.badcode 2003-10-08 09:42:22.000000000 +0100
+++ sane-backends-1.0.12/backend/canon-sane.c 2003-10-08 09:42:51.000000000 +0100
@@ -1919,8 +1919,8 @@
for (p = buf; p < buf + nread; p++)
{
b = *p;
- *p++ = *(p + 1);
- *p = b;
+ *p = *(p + 1);
+ *++p = b;
}
}
*len = nread;