summaryrefslogtreecommitdiff
path: root/src/bin/embryo/embryo_cc_sc1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/embryo/embryo_cc_sc1.c')
-rw-r--r--src/bin/embryo/embryo_cc_sc1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/embryo/embryo_cc_sc1.c b/src/bin/embryo/embryo_cc_sc1.c
index 6432b5599d..b97e199950 100644
--- a/src/bin/embryo/embryo_cc_sc1.c
+++ b/src/bin/embryo/embryo_cc_sc1.c
@@ -3030,7 +3030,8 @@ insert_constval(constvalue * prev, constvalue * next, char *name,
3030 if (!(cur = (constvalue *)malloc(sizeof(constvalue)))) 3030 if (!(cur = (constvalue *)malloc(sizeof(constvalue))))
3031 error(103); /* insufficient memory (fatal error) */ 3031 error(103); /* insufficient memory (fatal error) */
3032 memset(cur, 0, sizeof(constvalue)); 3032 memset(cur, 0, sizeof(constvalue));
3033 strcpy(cur->name, name); 3033 strncpy(cur->name, name, sizeof(cur->name) - 1);
3034 cur->name[sizeof(cur->name) - 1] = 0;
3034 cur->value = val; 3035 cur->value = val;
3035 cur->index = idx; 3036 cur->index = idx;
3036 cur->next = next; 3037 cur->next = next;