commit 2724ee05fa1f097c45dd2d06a31e41551a47fb66
parent 8411b120e079e4e21b97e5ec31966b4182652910
Author: Michael Constantine Dimopoulos <mk@mcdim.xyz>
Date: Sat, 6 Nov 2021 14:28:25 +0000
Fixed nleet bug
Diffstat:
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/leet/nleet.1 b/leet/nleet.1
@@ -1,6 +1,6 @@
.\" Manpage for nleet
-.TH man 8 "15 Jul 2021" "1.3.1" "nleet manual page"
+.TH man 8 "15 Jul 2021" "1.3.2" "nleet manual page"
.SH NAME
nleet \- Narthex leetifier
.SH SYNOPSIS
diff --git a/leet/nleet.c b/leet/nleet.c
@@ -34,7 +34,7 @@
#include <errno.h>
#include <string.h>
-#define VERSION "v1.3.1"
+#define VERSION "v1.3.2"
#define BUFFER_SIZE 256
@@ -107,7 +107,7 @@ leetify(FILE *f, int full_upper)
npflag = 1;
/* } else if (buffer[i] == 't' || buffer[i] == 'T') {
* buffer[i] = '7';
- * npflag = 1; */
+ * npflag = 1; */
}
}
@@ -132,11 +132,12 @@ main(int argc, char* argv[])
if (file != 0) {
FILE *f = fopen(argv[file], "r");
- if (f)
+ if (f) {
f2= save_stdin(f);
- else
+ } else {
fprintf(stderr, "%s: %s\n", argv[0], strerror(errno));
exit(EXIT_FAILURE);
+ }
} else {
f2 = save_stdin(stdin);
}