commit bf1353995cb2ef530b703a0e08ffa3c4f2d03b24
parent b88b9e7ca269a476bffa799ab1c6e3b5314c863d
Author: kocotian <kocotian@kocotian.pl>
Date: Sun, 6 Dec 2020 20:11:54 +0100
fix a fix: exittin sequence
Diffstat:
2 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/nmps b/nmps
Binary files differ.
diff --git a/nmps.c b/nmps.c
@@ -14,7 +14,7 @@
#include "http.h"
#include "util.c"
-#define VERSION "a0.3.1"
+#define VERSION "a0.3.2"
extern void herror(const char *s);
@@ -71,18 +71,14 @@ command(char *command, char *args, char *host, char *port, char *beforeOutput)
|| (*truncbuf > 13 && *truncbuf < 24)) { /* steering sequences,
reserved for simple comunication
server -> client */
- if (*truncbuf == 4)
- goto deletinuser;
}
printf("%s%s%c", beforeOutput, truncbuf,
buffer[reqsize - 1] == '\n' || buffer[reqsize - 1]
== 030 /* ASCII 030 on the end simply means:
PLZ DON'T INSERT ENDL ON THE END!!1!1!!1 */
? '\0' : '\n');
- if (0) {
- deletinuser:
+ if (truncbuf == 4) /* temporary fix */
exit(*(++truncbuf) - 1);
- }
free(buffer);
return 0;
}