summaryrefslogtreecommitdiff
path: root/functions.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-23 15:16:47 +0000
committertron <tron@openttd.org>2005-01-23 15:16:47 +0000
commit53d1c3f117142dd3ecae23c5fcdc069f393f1703 (patch)
tree60b41a28cf18bba61bcff993ba254ea2000a083c /functions.h
parent9a96f5b64e08ec6c8043e4e389f172e8bf5c460d (diff)
downloadopenttd-53d1c3f117142dd3ecae23c5fcdc069f393f1703.tar.xz
(svn r1616) Introduce ttd_strlcat() and use it to de-uglify some piece of code in misc_cmd.
While here rename the len parameter of ttd_strlcpy() to size, because it is a buffer size and not a string length. Also add -Wwrite-strings to the Makefile, because the above mentioned piece of code was the only part which triggered this warning.
Diffstat (limited to 'functions.h')
-rw-r--r--functions.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/functions.h b/functions.h
index 12e2b9e20..6a5079aa4 100644
--- a/functions.h
+++ b/functions.h
@@ -271,7 +271,8 @@ enum {
};
void ShowSaveLoadDialog(int mode);
-void ttd_strlcpy(char *dst, const char *src, size_t len);
+void ttd_strlcpy(char *dst, const char *src, size_t size);
+void ttd_strlcat(char *dst, const char *src, size_t size);
// callback from drivers that is called if the game size changes dynamically
void GameSizeChanged(void);