From 8960939b22a474f42575b415f06c09eac7ff92fc Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 24 Apr 2014 18:37:39 +0000 Subject: (svn r26499) -Codechange: replace strndup with stredup --- src/ini_type.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ini_type.h') 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); -- cgit v1.2.3-70-g09d2