[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-16 13:43:45
[Download RAW message or body]
CVS commit by lunakl:
strncpy fixes
M +1 -0 chanparser.h 1.8.8.1
M +4 -2 iocontroller.cpp 1.44.2.1
--- kdenetwork/ksirc/chanparser.h #1.8:1.8.8.1
@@ -72,4 +72,5 @@ public:
infoFoundNick(char *_n){
strncpy(nick, _n, 100);
+ nick[100]='\0';
}
};
--- kdenetwork/ksirc/iocontroller.cpp #1.44:1.44.2.1
@@ -66,4 +66,6 @@
***********************************************************************/
+#include <config.h>
+
#include "ksopts.h"
#include "control_message.h"
@@ -247,5 +249,5 @@ void KSircIOController::stdin_write(QCSt
}
send_buf = new char[len];
- strncpy(send_buf, buffer.data(), len);
+ strlcpy(send_buf, buffer.data(), len);
if(proc->writeStdin(send_buf, len) == FALSE){
kdDebug() << "Failed to write but CTS HIGH! Setting low!: " << s << endl;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic