mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 19:22:50 -06:00
Use memcpy instead of strcpy
This commit is contained in:
@@ -128,7 +128,7 @@ PgfDB *pgf_read_ngf(const char *fpath,
|
|||||||
|
|
||||||
PgfText *master = (PgfText *)alloca(sizeof(PgfText)+master_size+1);
|
PgfText *master = (PgfText *)alloca(sizeof(PgfText)+master_size+1);
|
||||||
master->size = master_size;
|
master->size = master_size;
|
||||||
strcpy(master->text, master_text);
|
memcpy(&master->text, master_text, master_size+1);
|
||||||
|
|
||||||
{
|
{
|
||||||
DB_scope scope(db, WRITER_SCOPE);
|
DB_scope scope(db, WRITER_SCOPE);
|
||||||
|
|||||||
Reference in New Issue
Block a user