aboutsummaryrefslogtreecommitdiffstats
path: root/testing/hplip/fix-memmove.patch
blob: a7e791ff9d456cd000e8ccef4fdfc9ffaadce72b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
diff -ru hplip-3.20.5.orig/io/hpmud/musb.c hplip-3.20.5/io/hpmud/musb.c
--- hplip-3.20.5.orig/io/hpmud/musb.c	2020-05-11 16:33:56.000000000 +0300
+++ hplip-3.20.5/io/hpmud/musb.c	2020-07-06 17:48:24.364564601 +0300
@@ -775,7 +775,7 @@
         len = size-1;   /* leave byte for zero termination */
     if (len > 2)
         len -= 2;
-    memcpy(buffer, buffer+2, len);    /* remove length */
+    memmove(buffer, buffer+2, len);    /* remove length */
     buffer[len]=0;
     DBG("read actual device_id successfully fd=%d len=%d\n", fd, len);