X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fstats.c;h=c940c054d1b58de1a6571853fdacfb85fc60b336;hb=f6df762979437d12004feb37bd1535f4880094ff;hp=214ac436b1c20a7f70c071d5c799e59993ae3648;hpb=7f22c47809a3e10566f791acb7e6cb52197e6626;p=citadel.git diff --git a/citadel/stats.c b/citadel/stats.c index 214ac436b..c940c054d 100644 --- a/citadel/stats.c +++ b/citadel/stats.c @@ -90,10 +90,10 @@ void progress(long int curr, long int max) int main(int argc, char **argv) { - char hostbuf[256], portbuf[256]; + char hostbuf[SIZ], portbuf[SIZ]; time_t LogTime, now; unsigned int LogType; - char LogName[256]; + char LogName[SIZ]; int a, b, lowest; float p, q; long timeon[72]; @@ -112,7 +112,7 @@ int main(int argc, char **argv) FILE *sortpipe; char thegraph[GRANULARITY][73]; int pc_only = 0; - char buf[256]; + char buf[SIZ]; FILE *logfp; char *fakeargs[4]; @@ -160,7 +160,7 @@ int main(int argc, char **argv) if (!batch_mode) { printf("Scanning call log, please wait...\n"); } - while (fgets(buf, 256, logfp) != NULL) { + while (fgets(buf, sizeof buf, logfp) != NULL) { buf[strlen(buf) - 1] = 0; strcat(buf, "| ");