mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-11-05 03:35:27 -07:00
Use memcpy instead of strcpy
This commit is contained in:
1 parent
6497a3dd95
commit
2686e63e58
1 file changed
+1
-1
@@ -128,7 +128,7 @@ PgfDB *pgf_read_ngf(const char *fpath,
|
||||
|
||||
PgfText *master = (PgfText *)alloca(sizeof(PgfText)+master_size+1);
|
||||
master->size = master_size;
|
||||
strcpy(master->text, master_text);
|
||||
memcpy(&master->text, master_text, master_size+1);
|
||||
|
||||
{
|
||||
DB_scope scope(db, WRITER_SCOPE);
|
||||
|
||||
Reference in new issue
Block a user