Package: gmrun
Version: 0.9.1-2.4

Hello,
I'm attaching a diff with a "solution" to this issue.
If anybody could take a look at it so i (or anybody else) can add the 
'patch' tag would be great.

thanks

-- 
JID: lavaram...@jabber.org | http://lusers.com.ar/
2B82 A38D 1BA5 847A A74D 6C34 6AB7 9ED6 C8FD F9C1
--- /tmp/gmrun/gmrun-0.9.1/src/history.cc	2003-06-19 16:42:16.000000000 -0300
+++ /tmp/history.cc	2009-03-11 03:43:52.000000000 -0200
@@ -41,15 +41,14 @@
   ifstream f(filename);
   if (!f) return;
 
+  string line_text;
+
   while (!f.eof()) {
-    char line_text[256];
     string line_str;
-
-    f.getline(line_text, sizeof(line_text));
-    if (*line_text) {
-      line_str = line_text;
-      history.push_back(line_str);
-    }
+    
+    getline(f,line_text);
+    line_str = line_text;
+    history.push_back(line_str);
   }
 
   m_file_entries = history.size();

Reply via email to