Skip to content

Commit

Permalink
Merge pull request nim-lang#1619 from Araq/revert-1618-patch-3
Browse files Browse the repository at this point in the history
Revert "Remove extra trailing zero"
  • Loading branch information
Varriount committed Nov 1, 2014
2 parents 2e53e63 + cbe733a commit 598b43e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/pure/oids.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 598b43e

Please sign in to comment.