1
0
forked from pool/sane-backends
sane-backends/fix-ambiguous-post-pre-increment.patch

13 lines
322 B
Diff

--- backend/canon-sane.c.orig 2006-12-08 12:05:25.000000000 +0100
+++ backend/canon-sane.c 2006-12-08 13:13:33.000000000 +0100
@@ -1797,7 +1797,8 @@ read_fs2710 (SANE_Handle handle, SANE_By
for (p = buf; p < buf + nread; p++)
{
b = *p;
- *p++ = *(p + 1);
+ *p = *(p + 1);
+ p++;
*p = b;
}
#endif