Fix buffer-overflow
The buffer for a sscanf() %s argument with a length needs to be 1 longer than the length, for the terminating NUL.
The buffer for a sscanf() %s argument with a length needs to be 1 longer than the length, for the terminating NUL.