mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-04 00:02:17 +01:00
18 lines
405 B
Diff
18 lines
405 B
Diff
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);
|
|
}
|