Don't send a \0 byte after the banner
This commit is contained in:
@@ -117,7 +117,7 @@ int cmdsocket_accept(void) {
|
||||
}
|
||||
|
||||
cmd_active = c;
|
||||
write(cmd_active, CMDSOCKET_BANNER, sizeof(CMDSOCKET_BANNER));
|
||||
write(cmd_active, CMDSOCKET_BANNER, sizeof(CMDSOCKET_BANNER)-1);
|
||||
|
||||
vm_register_signal_fd(cmd_active, VM_CMDREADQ);
|
||||
vm_wakeup(VM_CMDREADQ);
|
||||
|
||||
Reference in New Issue
Block a user