fix sentinel warning

This commit is contained in:
asvitkine 2010-10-19 03:30:20 +00:00
parent 7665252790
commit 1170b925ee

View File

@ -587,7 +587,7 @@ bool XSERDPort::open_pty(void)
// <should we drop privileges if running setuid?>
// Let the shell do the dirty work
execlp("/bin/sh", "/bin/sh", "-c", ++device_name, 0);
execlp("/bin/sh", "/bin/sh", "-c", ++device_name, (char *)NULL);
// exec failed!
printf("serial_open: could not exec %s: %s\n",