patch-backend_umax1220u-common_c 523 B

123456789101112
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- sane-backends-1.0.20.orig/backend/umax1220u-common.c 2006-04-17 14:46:41.000000000 +0200
  3. +++ sane-backends-1.0.20/backend/umax1220u-common.c 2009-05-11 21:17:47.000000000 +0200
  4. @@ -556,7 +556,7 @@ cwritev (UMAX_Handle * scan, UMAX_Cmd cm
  5. /* Read the opcode back */
  6. CHK (cread (scan, cmd, len, buf, NULL));
  7. - if (bcmp (buf, data, len))
  8. + if (memcmp (buf, data, len))
  9. {
  10. DBG (1, "cwritev: verification failed\n");
  11. return SANE_STATUS_IO_ERROR;