diff options
author | rubidium <rubidium@openttd.org> | 2014-04-24 18:37:39 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2014-04-24 18:37:39 +0000 |
commit | 8960939b22a474f42575b415f06c09eac7ff92fc (patch) | |
tree | 2748f648244486593c4874160fb10fc5218c9b84 /src/ini_type.h | |
parent | 382ca0941fe53db8d01e145cff12bed91f51aaea (diff) | |
download | openttd-8960939b22a474f42575b415f06c09eac7ff92fc.tar.xz |
(svn r26499) -Codechange: replace strndup with stredup
Diffstat (limited to 'src/ini_type.h')
-rw-r--r-- | src/ini_type.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ini_type.h b/src/ini_type.h index 05133c77f..ce383b959 100644 --- a/src/ini_type.h +++ b/src/ini_type.h @@ -28,7 +28,7 @@ struct IniItem { char *value; ///< The value of this item char *comment; ///< The comment associated with this item - IniItem(struct IniGroup *parent, const char *name, size_t len = 0); + IniItem(struct IniGroup *parent, const char *name, const char *last = NULL); ~IniItem(); void SetValue(const char *value); @@ -43,7 +43,7 @@ struct IniGroup { char *name; ///< name of group char *comment; ///< comment for group - IniGroup(struct IniLoadFile *parent, const char *name, size_t len = 0); + IniGroup(struct IniLoadFile *parent, const char *name, const char *last = NULL); ~IniGroup(); IniItem *GetItem(const char *name, bool create); |