]> granicus.if.org Git - sudo/commitdiff
Fix a sizeof(ptr) vs. sizeof(*ptr)
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 1 Apr 2010 00:30:34 +0000 (20:30 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 1 Apr 2010 00:30:34 +0000 (20:30 -0400)
src/script.c

index 3962e45d48299fd27630035607d94c6ba012c579..961acf8fcc8eb1ce8637fc30c25f8559a5033a82 100644 (file)
@@ -557,7 +557,7 @@ script_execve(struct command_details *details, char *argv[], char *envp[],
            do {
                n = send(sv[0], cstat, sizeof(*cstat), 0);
            } while (n == -1 && errno == EINTR);
-           if (n != sizeof(cstat)) {
+           if (n != sizeof(*cstat)) {
                break; /* should not happen */
            }
        }