Utils/Termlib: New karmic fix
[senf.git] / senf / Utils / Termlib / Telnet.cc
index 19b9058..0ce7e45 100644 (file)
@@ -28,8 +28,8 @@
 
 // Custom includes
 #include <boost/algorithm/string/case_conv.hpp>
-#include "../membind.hh"
-#include "../Logger/SenfLog.hh"
+#include <senf/Utils/membind.hh>
+#include <senf/Utils/Logger/SenfLog.hh>
 
 //#include "Telnet.mpp"
 #define prefix_
@@ -173,7 +173,7 @@ prefix_ void senf::term::BaseTelnetProtocol::handleNormalChar(char c)
 
 prefix_ void senf::term::BaseTelnetProtocol::handleCommand(char c)
 {
-    switch (c) {
+    switch (static_cast<unsigned char>(c)) {
     case CMD_SE:
         // Ignore spurious SE commands .. they should only occur while in subnegotiation mode
         charState_ = NORMAL;
@@ -257,7 +257,7 @@ prefix_ void senf::term::BaseTelnetProtocol::handleSBData(char c)
 
 prefix_ void senf::term::BaseTelnetProtocol::handleSBIAC(char c)
 {
-    switch (c) {
+    switch (static_cast<unsigned char>(c)) {
     case CMD_IAC:
         data_.push_back(c);
         charState_ = SB_DATA;