From: David Levine Date: Sun, 22 Dec 2013 21:05:38 +0000 (-0600) Subject: Whooops, gcc on OpenBSD noticed a nasty in the last commit. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/847940e28795d71c9d9e58c7b6380ca82d916e55?ds=sidebyside Whooops, gcc on OpenBSD noticed a nasty in the last commit. --- diff --git a/uip/sendsbr.c b/uip/sendsbr.c index 96c6b52a..6d76e9cd 100644 --- a/uip/sendsbr.c +++ b/uip/sendsbr.c @@ -613,7 +613,7 @@ mime_type (const char *file_name) { if ((int) snprintf (cmd, sizeof cmd, mimetypeproc, file_name) < (int) sizeof cmd) { if ((fp = popen (cmd, "r")) != NULL) { - if (fgets (buf, sizeof cmd, fp)) { + if (fgets (buf, sizeof buf, fp)) { char *cp; /* Skip leading :, if present. */