Merge pull request #1618 from flaviut/patch-3
Remove extra trailing zero
This commit is contained in:
commit
2e53e6354c
1 changed files with 1 additions and 2 deletions
|
|
@ -52,10 +52,9 @@ proc oidToString*(oid: Oid, str: cstring) =
|
||||||
str[2 * i] = hex[(b and 0xF0) shr 4]
|
str[2 * i] = hex[(b and 0xF0) shr 4]
|
||||||
str[2 * i + 1] = hex[b and 0xF]
|
str[2 * i + 1] = hex[b and 0xF]
|
||||||
inc(i)
|
inc(i)
|
||||||
str[24] = '\0'
|
|
||||||
|
|
||||||
proc `$`*(oid: Oid): string =
|
proc `$`*(oid: Oid): string =
|
||||||
result = newString(25)
|
result = newString(24)
|
||||||
oidToString(oid, result)
|
oidToString(oid, result)
|
||||||
|
|
||||||
var
|
var
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue