simpleinit.c:846:
/usr/include/bits/unistd.h:43 warning: call to ‘__read_chk_warn’
declared with attribute warning: read called with bigger length than
size of the destination buffer
Signed-off-by: Karel Zak <kzak@redhat.com>
}
do_longjmp = 1; /* After this, SIGCHLD will cause a jump backwards */
sigprocmask (SIG_UNBLOCK, &ss, NULL);
- read (initctl_fd, buffer, COMMAND_SIZE);
+ read (initctl_fd, buffer, sizeof(buffer));
do_longjmp = 0;
process_command (command);
return 0;