FreeCalypso > hg > freecalypso-reveng
changeset 295:99f72069d867
blobstat: actually works now
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 21 Sep 2019 21:25:09 +0000 |
parents | ff2a6433687f |
children | abcec72cade4 |
files | blobstat/grokmap.c blobstat/output.c |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/blobstat/grokmap.c Sat Sep 21 21:17:29 2019 +0000 +++ b/blobstat/grokmap.c Sat Sep 21 21:25:09 2019 +0000 @@ -95,7 +95,7 @@ *cp++ = '\0'; strcpy(libnameout, linebuf + 43); cp += 2; - if (!isalpha(*cp)) + if (!isalnum(*cp) && *cp != '_') goto inv_input_sec_line; *memberout = cp; while (isalnum(*cp) || *cp == '_' || *cp == '.') @@ -112,7 +112,7 @@ goto inv_input_sec_line; if (*cp++ != ' ') goto inv_input_sec_line; - if (!isalpha(*cp)) + if (!isalnum(*cp) && *cp != '_') goto inv_input_sec_line; *memberout = cp; while (isalnum(*cp) || *cp == '_' || *cp == '.')
--- a/blobstat/output.c Sat Sep 21 21:17:29 2019 +0000 +++ b/blobstat/output.c Sat Sep 21 21:25:09 2019 +0000 @@ -14,7 +14,7 @@ total += p->accum; printf("total: 0x%lX (%lu) bytes\n", total, total); for (p = category_list; p; p = p->next) - printf("%s: 0x%lX (%lu) bytes, %u%% of total\n", p->accum, - p->accum, p->accum * 100 / total); + printf("%s: 0x%lX (%lu) bytes, %lu%% of total\n", p->name, + p->accum, p->accum, p->accum * 100 / total); return(0); }