X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Froutines2.c;h=349c4e35017df53b528e260969c500aa04c53056;hb=b425dda0a48b4a3e24a9f22d25e864d42679feee;hp=fca08555df05aad015f6f277386fdecf4c610d2c;hpb=8b8941a7c48dfcbec1f356150990da20093d6a16;p=citadel.git diff --git a/citadel/routines2.c b/citadel/routines2.c index fca08555d..349c4e350 100644 --- a/citadel/routines2.c +++ b/citadel/routines2.c @@ -327,7 +327,7 @@ void upload(CtdlIPC *ipc, int c) else newprompt("Enter filename: ", flnm, 15); - for (a = 0; a < strlen(flnm); ++a) + for (a = 0; !IsEmptyStr(&flnm[0]); ++a) if ((flnm[a] == '/') || (flnm[a] == '\\') || (flnm[a] == '>') || (flnm[a] == '?') || (flnm[a] == '*') || (flnm[a] == ';') || (flnm[a] == '&')) @@ -592,7 +592,7 @@ void list_bio(CtdlIPC *ipc) pprintf("%s\n", buf); return; } - while (resp && strlen(resp)) { + while (resp && !IsEmptyStr(resp)) { extract_token(buf, resp, 0, '\n', sizeof buf); remove_token(resp, 0, '\n'); if ((pos + strlen(buf) + 5) > screenwidth) {