diff options
author | Varriount <Varriount@users.noreply.github.com> | 2014-11-01 17:52:00 -0400 |
---|---|---|
committer | Varriount <Varriount@users.noreply.github.com> | 2014-11-01 17:52:00 -0400 |
commit | cbe733afa25c262cc77781d87cda11efbcbb9fa8 (patch) | |
tree | 90795e9a0826aeaae169ca00e87446c612de24a3 /lib/pure | |
parent | 2e53e6354c29d97c8c9ef529fb47939697e92a96 (diff) | |
download | Nim-cbe733afa25c262cc77781d87cda11efbcbb9fa8.tar.gz |
Revert "Remove extra trailing zero"
Diffstat (limited to 'lib/pure')
-rw-r--r-- | lib/pure/oids.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pure/oids.nim b/lib/pure/oids.nim index 06e049d46..7c58a2dda 100644 --- a/lib/pure/oids.nim +++ b/lib/pure/oids.nim @@ -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 |