From: Todd C. Miller Date: Thu, 1 Apr 2010 00:30:34 +0000 (-0400) Subject: Fix a sizeof(ptr) vs. sizeof(*ptr) X-Git-Tag: SUDO_1_8_0~757 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ca2eee07b5b04867679c05917338b4279407fa93;p=sudo Fix a sizeof(ptr) vs. sizeof(*ptr) --- diff --git a/src/script.c b/src/script.c index 3962e45d4..961acf8fc 100644 --- a/src/script.c +++ b/src/script.c @@ -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 */ } }