* extract_token() now expects to be supplied with the size of the
[citadel.git] / citadel / serv_mrtg.c
index 1783e5865ca81941d6ba4536bff0922eab315dff..a28896cb1cc045c07f36751904624e3534616f1b 100644 (file)
@@ -110,9 +110,9 @@ void mrtg_messages(void) {
  * Fetch data for MRTG
  */
 void cmd_mrtg(char *argbuf) {
-       char which[SIZ];
+       char which[32];
 
-       extract(which, argbuf, 0);
+       extract_token(which, argbuf, 0, '|', sizeof which);
 
        if (!strcasecmp(which, "users")) {
                mrtg_users();