~mdw
/
sgt
/
agedu
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix bonehead error in hex escape processing when loading dump files.
[sgt/agedu]
/
agedu.c
diff --git
a/agedu.c
b/agedu.c
index
74d1971
..
4cdfee6
100644
(file)
--- a/
agedu.c
+++ b/
agedu.c
@@
-970,6
+970,7
@@
int main(int argc, char **argv)
p++;
c = 0;
for (i = 0; i < 2; i++) {
+ c *= 16;
if (*p >= '0' && *p <= '9')
c += *p - '0';
else if (*p >= 'A' && *p <= 'F')
@@
-989,6
+990,7
@@
int main(int argc, char **argv)
*q = '\0';
triebuild_add(ctx->tb, buf, &tf);
sfree(buf);
+ line++;
}
} else {
du(scandir, gotdata, ctx);