Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VirtualFileSystemHook: ensure string is properly null terminated
When the VirtualFileSystem hook receives an error reading data from GVFS over a named pipe, it will include the pipe message in the error message. The pipe message is not necassarily null terminated, so we need to append a null terminating character before passing it to string formatting functions that expect a null terminated string. This change makes sure the message is null terminated.
- Loading branch information