Use strdup() instead of strncpy().

This commit is contained in:
Jason S. Ninneman 2017-06-12 09:21:24 -07:00 committed by Eric S. Raymond
parent a044f10411
commit ca0e042952
2 changed files with 13 additions and 2 deletions

View file

@ -87,6 +87,7 @@ extern lcg_state lcgstate;
#define READ_MODE "rb"
#define WRITE_MODE "wb"
extern void* xmalloc(size_t);
extern char* xstrdup(const char*);
extern void packed_to_token(long, char token[6]);
extern void newspeak(char*);
extern void PSPEAK(vocab_t,int);