christoph2/pyxcp

use_ctypes return of getKey fails when key has null character in it

still-learnin opened this issue · 0 comments

kb which is returned from the getKey() method is a string buffer. Therefore the return value is truncated at the first null character. One solution would be to slice kb so that the complete key is returned:

    return (retCode, kb[0:kl.value])