summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--file.c2
-rw-r--r--macos.c3
-rw-r--r--parse-xml.c2
3 files changed, 5 insertions, 2 deletions
diff --git a/file.c b/file.c
index da498995c..b9a598e2a 100644
--- a/file.c
+++ b/file.c
@@ -197,7 +197,7 @@ static int try_to_open_csv(const char *filename, struct memblock *mem, enum csv_
struct sample *sample;
errno = 0;
- val = strtod(p,&end);
+ val = g_ascii_strtod(p,&end);
if (end == p)
break;
if (errno)
diff --git a/macos.c b/macos.c
index 1b7da1ec6..20445c808 100644
--- a/macos.c
+++ b/macos.c
@@ -98,6 +98,9 @@ void subsurface_ui_setup(GtkSettings *settings, GtkWidget *menubar,
gtk_widget_hide (menubar);
gtk_osxapplication_set_menu_bar(osx_app, GTK_MENU_SHELL(menubar));
+ sep = gtk_ui_manager_get_widget(ui_manager, "/MainMenu/FileMenu/Separator1");
+ if (sep)
+ gtk_widget_destroy(sep);
sep = gtk_ui_manager_get_widget(ui_manager, "/MainMenu/FileMenu/Separator2");
if (sep)
gtk_widget_destroy(sep);
diff --git a/parse-xml.c b/parse-xml.c
index a1eb21070..1c4db7d9d 100644
--- a/parse-xml.c
+++ b/parse-xml.c
@@ -289,7 +289,7 @@ static enum number_type integer_or_float(char *buffer, union int_or_float *res)
/* Looks like it might be floating point? */
if (*end == '.') {
errno = 0;
- fp = strtod(buffer, &end);
+ fp = g_ascii_strtod(buffer, &end);
if (!errno) {
res->fp = fp;
return FLOAT;