Re: [PATCH] Use memmove instead of strcpy

2018-07-09 Thread Chet Ramey
On 7/7/18 1:25 AM, Bernhard M. Wiedemann wrote: > In https://bugzilla.opensuse.org/show_bug.cgi?id=1100488 > we found that depending on the build machine, bash-4.4's bash.html would > contain the string Bahh instead of Bash > > strcpy can cause corruption when working on overlapping strings > so

[PATCH] Use memmove instead of strcpy

2018-07-06 Thread Bernhard M. Wiedemann
In https://bugzilla.opensuse.org/show_bug.cgi?id=1100488 we found that depending on the build machine, bash-4.4's bash.html would contain the string Bahh instead of Bash strcpy can cause corruption when working on overlapping strings so we use memmove instead that handles this case correctly ---

[PATCH] Use memmove instead of strcpy

2018-07-06 Thread Bernhard M. Wiedemann
In https://bugzilla.opensuse.org/show_bug.cgi?id=1100488 we found that depending on the build machine, bash-4.4's bash.html would contain the string Bahh instead of Bash strcpy can cause corruption when working on overlapping strings so we use memmove instead that handles this case correctly ---