From d4741d541016b1402ccc677ef11c692d7a1d0d92 Mon Sep 17 00:00:00 2001 From: Hisham Date: Fri, 19 Feb 2016 13:39:16 -0200 Subject: [PATCH] =?UTF-8?q?Fix=20error=20test=20=E2=80=94=20looks=20like?= =?UTF-8?q?=20nobody=20bumped=20into=20this=20one!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htop.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htop.c b/htop.c index 9e82a122..78c292fb 100644 --- a/htop.c +++ b/htop.c @@ -176,7 +176,8 @@ int main(int argc, char** argv) { #ifdef HAVE_PROC if (access(PROCDIR, R_OK) != 0) { - fprintf("Error: could not read procfs (compiled to look in %s).\n", PROCDIR); + fprintf(stderr, "Error: could not read procfs (compiled to look in %s).\n", PROCDIR); + exit(1); } #endif