diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2013-01-04 22:19:59 +0100 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2013-01-04 22:19:59 +0100 |
commit | 7ff6220d016ae83f7c388c9f474b6d7f86c3fa69 (patch) | |
tree | 5fdcce4ad6bcc12597166878bbb679fe31ac9800 /main/dev86/dev86-0.16.19-memmove.patch | |
parent | 8fa08b81feb7b9a86f821ec60ecc6d22c8dae9e5 (diff) | |
download | aports-7ff6220d016ae83f7c388c9f474b6d7f86c3fa69.tar.bz2 aports-7ff6220d016ae83f7c388c9f474b6d7f86c3fa69.tar.xz |
main/dev86: fix build on eglibc
Diffstat (limited to 'main/dev86/dev86-0.16.19-memmove.patch')
-rw-r--r-- | main/dev86/dev86-0.16.19-memmove.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/main/dev86/dev86-0.16.19-memmove.patch b/main/dev86/dev86-0.16.19-memmove.patch new file mode 100644 index 000000000..e0bd8b7ce --- /dev/null +++ b/main/dev86/dev86-0.16.19-memmove.patch @@ -0,0 +1,17 @@ +https://bugs.gentoo.org/354351 + +fix sniped from Debian: +* Fix "FTBFS: ncc: illegal label": apply patch by dai that replaces strcpy + by memmove (closes: #591133). + +--- a/copt/copt.c ++++ b/copt/copt.c +@@ -174,7 +174,7 @@ + /* Delete leading white spaces */ + for (cp = buf; *cp && isspace(*cp); cp++) ; + if (cp != buf && *cp) +- strcpy(buf, cp); ++ memmove(buf, cp, strlen(cp) + 1); + + return(buf); + } |