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