summaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rw-r--r--gui/Config.c5
-rw-r--r--gui/Linux.h6
2 files changed, 8 insertions, 3 deletions
diff --git a/gui/Config.c b/gui/Config.c
index 16c29c9a..0c183086 100644
--- a/gui/Config.c
+++ b/gui/Config.c
@@ -24,6 +24,9 @@
#include "Linux.h"
+char cfgfile[MAXPATHLEN];
+char cfgfile_basename[MAXPATHLEN];
+
/* TODO escaping/unescaping would be nice, as would maxchars */
static void GetValue(char *src, char *name, char *outvar) {
char *tmp;
@@ -32,7 +35,7 @@ static void GetValue(char *src, char *name, char *outvar) {
tmp = strstr(src, name);
if (tmp == NULL) return;
- tmp += strlen(name);
+ tmp += strlen(name);
while ((*tmp == ' ') || (*tmp == '=')) tmp++;
while (*tmp != '\n' && *tmp != 0)
diff --git a/gui/Linux.h b/gui/Linux.h
index 2a939050..51310ee1 100644
--- a/gui/Linux.h
+++ b/gui/Linux.h
@@ -44,8 +44,10 @@
extern gboolean UseGui;
extern int StatesC;
-char cfgfile[MAXPATHLEN]; /* ADB Comment this out - make a local var, or at least use gchar funcs */
-char cfgfile_basename[MAXPATHLEN]; /* ADB Comment this out - make a local var, or at least use gchar funcs */
+/* ADB Comment this out - make a local var, or at least use gchar funcs */
+extern char cfgfile[MAXPATHLEN];
+/* ADB Comment this out - make a local var, or at least use gchar funcs */
+extern char cfgfile_basename[MAXPATHLEN];
int LoadConfig();
void SaveConfig();