summaryrefslogtreecommitdiff
path: root/minie
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2020-01-24 20:27:11 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2020-01-24 20:27:11 +0100
commita591f158fb2c856375d0137336a730c0123f3c3b (patch)
treea485166c1ff30e757c11743660fbd2c3530d3e9d /minie
parent6572619caffcc02de2d7300c4320028c4ab2d8a8 (diff)
downloadcompilertests-a591f158fb2c856375d0137336a730c0123f3c3b.tar.gz
compilertests-a591f158fb2c856375d0137336a730c0123f3c3b.tar.bz2
rewrote ecomp-e/ec.c into a freestanding, no-clibrary version
Diffstat (limited to 'minie')
-rw-r--r--minie/e2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/minie/e2c.c b/minie/e2c.c
index 7ba88d5..dad2565 100644
--- a/minie/e2c.c
+++ b/minie/e2c.c
@@ -617,7 +617,7 @@ static Symbol *insert_symbol( SymbolTable *table, char *name )
Abort( "Symbol table exhausted, increase MAX_SYMBOLS and recompile e2c" );
}
- strncpy( table->symbols[table->nof_symbols].name, name, MAX_IDENT_LEN );
+ strcpy( table->symbols[table->nof_symbols].name, name, MAX_IDENT_LEN );
table->symbols[table->nof_symbols].name[MAX_IDENT_LEN-1] = '\0';
table->nof_symbols++;