From 6f38a680201b2cb0e5b6b940b0cf1de64e15de4d Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Wed, 27 Apr 2022 19:02:02 +0200 Subject: [PATCH] added comparing versions to error message --- src/misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/misc.c b/src/misc.c index bf57669..bb01bba 100644 --- a/src/misc.c +++ b/src/misc.c @@ -42,7 +42,7 @@ checkVersion() //CHECK FOR TEXT IN buffer if (strcmp(buffer, "") == 0) { - fprintf(stderr, "You probably aren't connected to internet! This release could be unsafe!\n"); + fprintf(stderr, "You probably aren't connected to internet! This release could be unsafe!\n\n"); //WAIT FOR 5 SECONDS sleep(5); @@ -57,7 +57,7 @@ checkVersion() if (strcmp(VERSION, json_object_get_string(active)) != 0) { - fprintf(stderr, "Your version isn't latest! This release could be unsafe!\n"); + fprintf(stderr, "Your version isn't latest! This release could be unsafe! (%s/%s)\n\n", VERSION, json_object_get_string(active)); //WAIT FOR 5 SECONDS sleep(5);