* extract_token() now expects to be supplied with the size of the
[citadel.git] / citadel / client_chat.c
index 1c2369a633ee3ff768d86ca479c7a670c3b450b6..a98b4bdfc0c9fd914dcf50bd8dd595bd5a79ba38 100644 (file)
@@ -172,10 +172,10 @@ RCL:              if (send_complete_line) {
                                return;
                        }
                        if (num_parms(buf) >= 2) {
-                               extract(c_user, buf, 0);
-                               extract(c_text, buf, 1);
+                               extract_token(c_user, buf, 0, '|', sizeof c_user);
+                               extract_token(c_text, buf, 1, '|', sizeof c_text);
                                if (num_parms(buf) > 2) {
-                                       extract(c_room, buf, 2);
+                                       extract_token(c_room, buf, 2, '|', sizeof c_room);
                                        scr_printf("Got room %s\n", c_room);
                                }
                                if (strcasecmp(c_text, "NOOP")) {