]> code.citadel.org Git - citadel.git/commitdiff
got rid of all the 32767's
authorArt Cancro <ajc@citadel.org>
Tue, 30 Mar 1999 21:14:38 +0000 (21:14 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 30 Mar 1999 21:14:38 +0000 (21:14 +0000)
daphne/roomview.cpp
daphne/send_express.cpp
daphne/userlogin.cpp
daphne/utils.cpp

index 50428bc70feaacffd2f3f86ae51c565e074acd4e..9fe65a0b36034b940aa6f7c8561e185308dabc5d 100644 (file)
@@ -128,7 +128,7 @@ void RoomView::do_readloop(wxString readcmd) {
 
        sendcmd = readcmd;
        if (citsock->serv_trans(sendcmd, recvcmd, xferbuf) != 1) {
-               message_window->SetValue(recvcmd.Mid(4,32767));
+               message_window->SetValue(recvcmd.Mid(4));
                return;
        }
 
index 85b503c0aaa9e444861a04fd132b7acdf0acb801..56b46bd090888cd512b6c101044d9f037f398bd7 100644 (file)
@@ -190,7 +190,7 @@ void SendExpress::OnButtonPressed(wxCommandEvent& whichbutton) {
                MultilineToList(msg, TheMessage->GetValue());
                sendcmd = "SEXP " + target_user + "|-" ;
                if (citsock->serv_trans(sendcmd, recvcmd, msg) != 4) {
-                       wxMessageBox(recvcmd.Mid(4, 32767),
+                       wxMessageBox(recvcmd.Mid(4),
                                        "Error",
                                        wxOK | wxICON_EXCLAMATION,
                                        NULL, -1, -1);
index 0e2eb76d821ec6c75c3392762d260a6859456e6c..897cbda8d98a942445d01ebb0c9dc308f098f231 100644 (file)
@@ -247,7 +247,7 @@ void UserLogin::OnButtonPressed(wxCommandEvent& whichbutton) {
                r = citsock->serv_trans(sendbuf, recvbuf);
                if (r != 3) {
                        wxMessageDialog nouser(this,
-                               recvbuf.Mid(4,32767),
+                               recvbuf.Mid(4),
                                "Error",
                                wxOK | wxCENTRE | wxICON_INFORMATION,
                                wxDefaultPosition);
@@ -258,7 +258,7 @@ void UserLogin::OnButtonPressed(wxCommandEvent& whichbutton) {
                        r = citsock->serv_trans(sendbuf, recvbuf);
                        if (r != 2) {
                                wxMessageDialog nopass(this,
-                                       recvbuf.Mid(4,32767),
+                                       recvbuf.Mid(4),
                                        "Error",
                                        wxOK | wxCENTRE | wxICON_INFORMATION,
                                        wxDefaultPosition);
@@ -275,7 +275,7 @@ void UserLogin::OnButtonPressed(wxCommandEvent& whichbutton) {
                r = citsock->serv_trans(sendbuf, recvbuf);
                if (r != 2) {
                        wxMessageDialog nouser(this,
-                               recvbuf.Mid(4,32767),
+                               recvbuf.Mid(4),
                                "Error",
                                wxOK | wxCENTRE | wxICON_INFORMATION,
                                wxDefaultPosition);
index 701d20041b166798454ba9c63eb22838fa6f9a73..faba536e6adcecdfc4c53cd7c09812f4e1897fb1 100644 (file)
@@ -61,7 +61,7 @@ void extract(wxString& outputbuf, wxString inputbuf, int parmnum) {
        for (a=0; a<parmnum; ++a) {
                p = outputbuf.First('|');
                if (p >= 0) {
-                       outputbuf = outputbuf.Mid(p+1, 32767);
+                       outputbuf = outputbuf.Mid(p+1);
                }
        }