Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix interface class/name buffer over-read.
Class was mallocing 10 bytes, then GetString would do a strncpy of 10 bytes into class, however strncpy was not null-terminating the buffer. From the strncpy man page: Warning: If there is no null byte among the first n bytes of src, the string placed in dest will not be null-terminated. Fix is to malloc an extra byte for the class and name buffers. Signed-off-by: Michael Sartain <mikesart@gmail.com>
- Loading branch information