Fixed bug where userapp couldn't write the maximum number of characters to the kernel buffer