X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=gtk-gui.c;h=ac80a47f41b5f2f848f08949e0f715e7fa7fa962;hb=df1f506b4e874a9c5afad8d31989a2389bbcdf2d;hp=306e1a5e715ab8e5a6e890c3ce431cc2970ac218;hpb=ed1ce8ebc8590533291a9c5d6460f8d1c9f857dd;p=ext%2Fsubsurface.git diff --git a/gtk-gui.c b/gtk-gui.c index 306e1a5..ac80a47 100644 --- a/gtk-gui.c +++ b/gtk-gui.c @@ -223,7 +223,7 @@ static gboolean ask_save_changes() label = gtk_label_new ( "You have unsaved changes\nWould you like to save those before exiting the program?"); } else { - char *label_text = (char*) malloc(sizeof(char) * (92 + strlen(existing_filename))); + char *label_text = (char*) malloc(sizeof(char) * (93 + strlen(existing_filename))); sprintf(label_text, "You have unsaved changes to file: %s \nWould you like to save those before exiting the program?", existing_filename);