projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3a2bc6
)
Use memcpy instead of strncpy to avoid error with -Werror=stringop-truncation.
author
John David Anglin
<danglin@gcc.gnu.org>
Fri, 19 Mar 2021 15:57:06 +0000
(15:57 +0000)
committer
John David Anglin
<danglin@gcc.gnu.org>
Fri, 19 Mar 2021 15:57:06 +0000
(15:57 +0000)
gcc/ChangeLog:
* config/pa/pa.c (import_milli): Use memcpy instead of strncpy.
gcc/config/pa/pa.c
patch
|
blob
|
history
diff --git
a/gcc/config/pa/pa.c
b/gcc/config/pa/pa.c
index
d7fcd11
..
46194ba
100644
(file)
--- a/
gcc/config/pa/pa.c
+++ b/
gcc/config/pa/pa.c
@@
-5950,7
+5950,7
@@
import_milli (enum millicodes code)
{
imported[(int) code] = 1;
strcpy (str, import_string);
-
strn
cpy (str + MILLI_START, milli_names[(int) code], 4);
+
mem
cpy (str + MILLI_START, milli_names[(int) code], 4);
output_asm_insn (str, 0);
}
}