[hackers] [st] use memmove() instead of memcpy() in ttyread(). || Aurélien Aptel

From: <hg_AT_suckless.org>
Date: Sat, 27 Nov 2010 23:40:50 +0000 (UTC)

changeset: 173:a180e93eb0d3
tag: tip
user: Aurélien Aptel <aurelien.aptel_AT_gmail.com>
date: Sun Nov 28 01:40:39 2010 +0100
files: st.c
description:
use memmove() instead of memcpy() in ttyread().

diff -r 083b16f79b96 -r a180e93eb0d3 st.c
--- a/st.c Sat Nov 27 21:19:31 2010 +0100
+++ b/st.c Sun Nov 28 01:40:39 2010 +0100
@@ -630,7 +630,7 @@
         }
 
         /* keep any uncomplete utf8 char for the next call */
- memcpy(buf, ptr, buflen);
+ memmove(buf, ptr, buflen);
 }
 
 void
Received on Sun Nov 28 2010 - 00:40:50 CET

This archive was generated by hypermail 2.2.0 : Sun Nov 28 2010 - 00:48:04 CET