diff options
Diffstat (limited to 'io/hpmud/pp.c')
-rw-r--r-- | io/hpmud/pp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io/hpmud/pp.c b/io/hpmud/pp.c index 74c5fdcb4..021d62743 100644 --- a/io/hpmud/pp.c +++ b/io/hpmud/pp.c @@ -632,7 +632,7 @@ static int device_id(int fd, char *buffer, int size) 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); |