(svn r26499) -Codechange: replace strndup with stredup

This commit is contained in:
rubidium
2014-04-24 18:37:39 +00:00
parent 382ca0941f
commit 8960939b22
6 changed files with 30 additions and 43 deletions

View File

@@ -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);