-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Hi!, I've tried this library, but frequently it doesn't work. (Example: memory efficient deduplication for files). I'm using Linux Mint 20.3 (x64).
I think it's because the Fetch method, FirstKey, and NextKey don't come with the last null character in the returned string.
The original c language gdbm, either store it with last '\0', or look at dsize and copy it somewhere. Maybe it doesn't have to be a string.
if vdatum.dptr == nil:
result = ""
else:
result = newString(vdatum.dsize)
copyMem(result[0].addr, vdatum.dptr, vdatum.dsize)
This will work always...
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels