aboutsummaryrefslogtreecommitdiff
path: root/src/Keys.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Keys.cc')
-rw-r--r--src/Keys.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/Keys.cc b/src/Keys.cc
index 7de7d33..e6105aa 100644
--- a/src/Keys.cc
+++ b/src/Keys.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22//$Id: Keys.cc,v 1.32 2003/06/30 14:57:14 fluxgen Exp $ 22//$Id: Keys.cc,v 1.33 2003/06/30 19:42:20 fluxgen Exp $
23 23
24 24
25#include "Keys.hh" 25#include "Keys.hh"
@@ -190,8 +190,13 @@ bool Keys::load(const char *filename) {
190 190
191 } else { // parse command line 191 } else { // parse command line
192 192
193
194 const char *str =
195 FbTk::StringUtil::strcasestr(linebuffer.c_str(),
196 val[argc].c_str() + 1); // +1 to skip ':'
197
193 // +1 to remove the first ':' 198 // +1 to remove the first ':'
194 last_key->m_command = CommandParser::instance().parseLine(val[argc].c_str() + 1); 199 last_key->m_command = CommandParser::instance().parseLine(str);
195 200
196 if (*last_key->m_command == 0) { 201 if (*last_key->m_command == 0) {
197 cerr<<"File: "<<filename<<". Error on line: "<<line<<endl; 202 cerr<<"File: "<<filename<<". Error on line: "<<line<<endl;