X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fserv_bio.c;h=37543c89c60cb3f208b8ee6bb8127c83b8154bf6;hb=f6df762979437d12004feb37bd1535f4880094ff;hp=6ac1f2998df995fc882bba525fae90d0653baf36;hpb=7f22c47809a3e10566f791acb7e6cb52197e6626;p=citadel.git diff --git a/citadel/serv_bio.c b/citadel/serv_bio.c index 6ac1f2998..37543c89c 100644 --- a/citadel/serv_bio.c +++ b/citadel/serv_bio.c @@ -42,7 +42,7 @@ * enter user bio */ void cmd_ebio(char *cmdbuf) { - char buf[256]; + char buf[SIZ]; FILE *fp; if (!(CC->logged_in)) { @@ -69,7 +69,7 @@ void cmd_ebio(char *cmdbuf) { void cmd_rbio(char *cmdbuf) { struct usersupp ruser; - char buf[256]; + char buf[SIZ]; FILE *fp; extract(buf,cmdbuf,0); @@ -86,7 +86,7 @@ void cmd_rbio(char *cmdbuf) return; } cprintf("%d \n",LISTING_FOLLOWS); - while (fgets(buf,256,fp)!=NULL) cprintf("%s",buf); + while (fgets(buf,sizeof buf,fp)!=NULL) cprintf("%s",buf); fclose(fp); cprintf("000\n"); } @@ -95,7 +95,7 @@ void cmd_rbio(char *cmdbuf) * list of users who have entered bios */ void cmd_lbio(char *cmdbuf) { - char buf[256]; + char buf[SIZ]; FILE *ls; struct usersupp usbuf;