[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE_3_1_BRANCH: kdenetwork/ksirc
From:       Lubos Lunak <l.lunak () kde ! org>
Date:       2002-12-06 16:11:45
[Download RAW message or body]

CVS commit by lunakl: 

Possible off-by-one.


  M +3 -3      servercontroller.cpp   1.149.2.1


--- kdenetwork/ksirc/servercontroller.cpp:1.149	Thu Sep  5 17:44:07 2002
@@ -2,7 +2,7 @@
 
  Server Controller
 
- $$Id: servercontroller.cpp,v 1.149 2002/09/05 15:44:07 harald Exp $$
+ $$Id: servercontroller.cpp,v 1.149.2.1 2002/12/06 16:11:45 lunakl Exp $$
 
  Main Server Controller.  Displays server connection window, and makes
  new server connection on demand.
@@ -436,8 +436,8 @@
   case ProcCommand::changeChannel:
     {
       char *new_s, *old_s;
-      new_s = new char[args.length()];
-      old_s = new char[args.length()];
+      new_s = new char[args.length()+1];
+      old_s = new char[args.length()+1];
       sscanf(args.ascii(), "%s %s", old_s, new_s);
       //  If the channel has a !, it's a control channel, remove the !
       if(old_s[0] == '!')

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic