commit 073f34e08db480be82b2138e97e863cecab9144d
parent d90dd3081136faa4ba9b162fa986825bc72203de
Author: Michael Constantine Dimopoulos <mk@mcdim.xyz>
Date: Sun, 10 Oct 2021 13:25:52 +0000
Fixed small ninc bug
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/inc/nin.c b/inc/nin.c
@@ -23,7 +23,7 @@
#include <string.h>
#include <ctype.h>
-#define VERSION "v1.0"
+#define VERSION "v1.1"
#define BUFFER_SIZE 256
static void
@@ -44,7 +44,7 @@ help(char * exename)
static void
die(char * str)
{
- printf("%d\n", str);
+ printf("%s\n", str);
exit(EXIT_SUCCESS);
}
@@ -110,7 +110,7 @@ main(int argc, char * argv[])
if (strcmp(argv[1], "-h") == 0)
help(argv[0]);
else if (strcmp(argv[1], "-v") ==0)
- printf("%s\n", VERSION);
+ die(VERSION);
} else if (argc == 3) {
min = atoi(argv[1]);
max = atoi(argv[2]);
diff --git a/inc/ninc.1 b/inc/ninc.1
@@ -1,6 +1,6 @@
.\" Manpage for ninc
-.TH man 8 "15 Jul 2021" "1.0" "ninc manual page"
+.TH man 8 "15 Jul 2021" "1.1" "ninc manual page"
.SH NAME
ninc \- Narthex incrementor
.SH SYNOPSIS