]> code.citadel.org Git - citadel.git/blobdiff - citadel/serv_chat.c
* Removed all of the thread cancellation cruft that is no longer necessary
[citadel.git] / citadel / serv_chat.c
index 8328259a301bc808645cc3c45b1e926bdc07fa01..88d343e0b8520e843d78bb6deca065cef28e9212 100644 (file)
@@ -19,9 +19,6 @@
 #include <sys/wait.h>
 #include <string.h>
 #include <limits.h>
-#ifdef HAVE_PTHREAD_H
-#include <pthread.h>
-#endif
 #include "citadel.h"
 #include "server.h"
 #include <syslog.h>
@@ -86,10 +83,10 @@ void allwrite(char *cmdbuf, int flag, char *roomname, char *username)
        time(&now);
        clnew->next = NULL;
        clnew->chat_time = now;
-       strncpy(clnew->chat_room, roomname, sizeof clnew->chat_room);
+       safestrncpy(clnew->chat_room, roomname, sizeof clnew->chat_room);
        clnew->chat_room[sizeof clnew->chat_room - 1] = 0;
        if (username) {
-               strncpy(clnew->chat_username, username,
+               safestrncpy(clnew->chat_username, username,
                        sizeof clnew->chat_username);
                clnew->chat_username[sizeof clnew->chat_username - 1] = 0;
        } else