Use strdup() instead of strncpy().
[open-adventure.git] / advent.h
index f831a7b487d8a472bf00ca6748790e05374961e4..d34310663c8f148a4efb7882862249c91b04e789 100644 (file)
--- a/advent.h
+++ b/advent.h
@@ -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);