Fix a sizeof(ptr) vs. sizeof(*ptr)

This commit is contained in:
Todd C. Miller
2010-03-31 20:30:34 -04:00
parent c3e87c2db3
commit ca2eee07b5

View 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 */
}
}