Tiqr / tiqr

Obsolete Github repo for the tiqr.org project. Note that the repository is split into several individual repos, all with a tiqr- prefix
35 stars 16 forks source link

Replace first occurance of keyBuffer with a 0 to replicate iOS6 #37

Closed thijsdamen closed 11 years ago

thijsdamen commented 11 years ago

iOS6's getCString:keyBuffer:encoding truncates the string to match maxLength, it also replaces the first character with a 0 instead of keeping it intact. Replicate this behaviour so older keys used remain usable.