mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 05:47:13 +02:00
13 lines
548 B
Diff
13 lines
548 B
Diff
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);
|
|
|