X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fcitadel.c;h=ec5cdc574d83085c6c768783a18c6232c13d0812;hb=119f5ee3d14919e18afc159074295c51e5f911ba;hp=b08346f9369085f8adc695f798decd6c0cbd3d49;hpb=63cb2f4bcd0510c1c5052d477095c25e034a960e;p=citadel.git diff --git a/citadel/citadel.c b/citadel/citadel.c index b08346f93..ec5cdc574 100644 --- a/citadel/citadel.c +++ b/citadel/citadel.c @@ -220,11 +220,11 @@ void userlist(CtdlIPC *ipc, char *patn) pprintf(" User Name Num L LastCall Calls Posts\n"); pprintf("------------------------- ----- - ---------- ----- -----\n"); while (strlen(listing) > 0) { - extract_token(buf, listing, 0, '\n'); + extract_token(buf, listing, 0, '\n', sizeof buf); remove_token(listing, 0, '\n'); if (sigcaught == 0) { - extract(fl, buf, 0); + extract_token(fl, buf, 0, '|', sizeof fl); if (pattern(fl, patn) >= 0) { pprintf("%-25s ", fl); pprintf("%5ld %d ", extract_long(buf, 2), @@ -250,7 +250,7 @@ void userlist(CtdlIPC *ipc, char *patn) */ void load_user_info(char *params) { - extract(fullname, params, 0); + extract_token(fullname, params, 0, '|', sizeof fullname); axlevel = extract_int(params, 1); timescalled = extract_int(params, 2); posted = extract_int(params, 3); @@ -848,7 +848,7 @@ char *SortOnlineUsers(char *listing) { /* Copy the list into a fixed-record-size array for sorting */ for (i=0; i