hgfs: format hashes in ther full length
This commit is contained in:
parent
403dee333e
commit
00c461fa18
1 changed files with 5 additions and 6 deletions
|
@ -10,12 +10,11 @@
|
||||||
int
|
int
|
||||||
Hfmt(Fmt *f)
|
Hfmt(Fmt *f)
|
||||||
{
|
{
|
||||||
uchar *p;
|
uchar *p, *e;
|
||||||
|
for(p = va_arg(f->args, uchar*), e = p + HASHSZ; p != e; p++)
|
||||||
p = va_arg(f->args, uchar*);
|
if(fmtprint(f, "%.2x", *p) < 0)
|
||||||
return fmtprint(f,
|
return -1;
|
||||||
"%.2x%.2x%.2x%.2x%.2x%.2x",
|
return 0;
|
||||||
p[0], p[1], p[2], p[3], p[4], p[5]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue