--- freem/src/iniconf.c 2025/04/09 19:52:02 1.5
+++ freem/src/iniconf.c 2025/04/10 01:24:38 1.6
@@ -1,5 +1,5 @@
/*
- * $Id: iniconf.c,v 1.5 2025/04/09 19:52:02 snw Exp $
+ * $Id: iniconf.c,v 1.6 2025/04/10 01:24:38 snw Exp $
* Function implementations for reading
* FreeM configuration files
*
@@ -25,6 +25,9 @@
* along with FreeM. If not, see .
*
* $Log: iniconf.c,v $
+ * Revision 1.6 2025/04/10 01:24:38 snw
+ * Remove C++ style comments
+ *
* Revision 1.5 2025/04/09 19:52:02 snw
* Eliminate as many warnings as possible while building with -Wall
*
@@ -71,6 +74,11 @@ extern char config_file[4096];
# include
#endif
+#if !defined(PATH_MAX)
+# define PATH_MAX 4096
+#endif
+
+
/* ini_keyvalue *ini_head; */
int get_conf(char *section, char *key, char *value)
@@ -197,6 +205,8 @@ int read_profile_string(char *file, char
char *cursec;
char *line;
int lnum = 0;
+
+ curkey = (char *) NULL;
fullsec = (char *) malloc(CONF_BUFSIZE);
NULLPTRCHK(fullsec,"read_profile_string");