um: adjust size of pid_buf
[firefly-linux-kernel-4.4.55.git] / arch / um / drivers / harddog_user.c
index b56f8e0196a9e1c4bc0d2c6aa3308785e4c750e9..84dce3fc590cb90eb9238107dc463cb70efd9fc0 100644 (file)
@@ -32,7 +32,7 @@ int start_watchdog(int *in_fd_ret, int *out_fd_ret, char *sock)
 {
        struct dog_data data;
        int in_fds[2], out_fds[2], pid, n, err;
-       char pid_buf[sizeof("nnnnn\0")], c;
+       char pid_buf[sizeof("nnnnnnn\0")], c;
        char *pid_args[] = { "/usr/bin/uml_watchdog", "-pid", pid_buf, NULL };
        char *mconsole_args[] = { "/usr/bin/uml_watchdog", "-mconsole", NULL,
                                  NULL };