Changeset 4230 for trunk/console
- Timestamp:
- 09/24/05 10:07:18 (3 years ago)
- Files:
-
- 1 modified
-
trunk/console/src/console_menu.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/console/src/console_menu.cpp
r4197 r4230 701 701 return scon; 702 702 } 703 704 703 string strArg(szArg); 705 704 string::size_type nPos = strArg.find_last_of("."); 706 705 if (nPos != string::npos) 707 706 { 708 string strProtocol(strArg, nPos + 1, strArg.size()); 707 string::size_type s = strArg.find_last_of(" "); 708 string strProtocol(strArg, nPos + 1, (s == string::npos) ? strArg.size() : s - nPos - 1); 709 709 ProtoPluginsList pl; 710 710 ProtoPluginsListIter it; … … 716 716 nPPID = (*it)->PPID(); 717 717 szArg[strArg.find_last_of(".")] = '\0'; 718 string tmp(strArg, 0, nPos); 719 tmp.append(strArg, s, strArg.size()); 720 szArg = (char *)tmp.c_str(); 718 721 break; 719 722 } 720 723 } 721 724 } 722 723 725 724 726 // Check if the alias is quoted
