Skip to content
Snippets Groups Projects
Commit 9f4c7b3f authored by rswindell's avatar rswindell
Browse files

Reduce unnecessary padding of AreaTags in AreaFix responses.

parent edb28b6a
No related branches found
No related tags found
No related merge requests found
......@@ -1558,8 +1558,13 @@ void netmail_arealist(enum arealist_type type, fidoaddr_t addr, const char* to)
if((fp=tmpfile())==NULL) {
lprintf(LOG_ERR,"ERROR line %d couldn't open tmpfile",__LINE__);
} else {
int longest = 0;
for(u = 0; area_list[u] != NULL; u++) {
int len = strlen(area_list[u]);
if(len > longest) longest = len;
}
for(u = 0; area_list[u] != NULL; u++)
fprintf(fp, "%-*s %s\r\n", FIDO_AREATAG_LEN, area_list[u], area_desc(area_list[u]));
fprintf(fp, "%-*s %s\r\n", longest, area_list[u], area_desc(area_list[u]));
file_to_netmail(fp,title,addr,to);
fclose(fp);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment