summaryrefslogtreecommitdiff
path: root/graphics/gle-graphics/files/patch-src_manip_filemenu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/gle-graphics/files/patch-src_manip_filemenu.cpp')
-rw-r--r--graphics/gle-graphics/files/patch-src_manip_filemenu.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/graphics/gle-graphics/files/patch-src_manip_filemenu.cpp b/graphics/gle-graphics/files/patch-src_manip_filemenu.cpp
new file mode 100644
index 000000000000..fa79ffdfd975
--- /dev/null
+++ b/graphics/gle-graphics/files/patch-src_manip_filemenu.cpp
@@ -0,0 +1,17 @@
+--- src/manip/filemenu.cpp.orig 2010-06-14 15:34:39 UTC
++++ src/manip/filemenu.cpp
+@@ -404,10 +404,12 @@ void do_help(const char *k1, const char
+ gotoxy(1,1);
+ wprintf("Manip help on topic {%s}, sub topic {%s}",k1,k2);
+ scr_menubg();
+- hfile = fopen(gledir(hfilename),"r");
++ string fname = gledir(hfilename);
++ hfilename = fname.c_str();
++ hfile = fopen(fname.c_str(),"r");
+ if (hfile==NULL) {
+ gotoxy(1,3);
+- wprintf("Unable to open {%s} \n",gledir(hfilename));
++ wprintf("Unable to open {%s} \n",hfilename);
+ text_inkey();
+ return;
+ }