commit | 7682e8580722f951559f372ba3d2b6170fdbe734 | [log] [tgz] |
---|---|---|
author | Nickolai Zeldovich <nickolai@csail.mit.edu> | Mon Jan 07 15:38:39 2013 -0500 |
committer | Stefan Hajnoczi <stefanha@redhat.com> | Tue Jan 08 10:00:26 2013 +0100 |
tree | 204b296a188a9ab4caedb029191b3e5904f52eff | |
parent | 8e4a424b305e29dc0e454f52df3b35577f342975 [diff] |
readline: avoid memcpy() of overlapping regions memcpy() for overlapping regions is undefined behavior; use memmove() instead in readline_hist_add(). [Keep tab characters since surrounding code still uses them -- Stefan] Signed-off-by: Nickolai Zeldovich <nickolai@csail.mit.edu> Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>