From 851c3e59760892c4b9591a1e14056ab8ee2fbc61 Mon Sep 17 00:00:00 2001 From: Diavolo Date: Mon, 31 May 2021 15:29:23 +0200 Subject: [PATCH] Because of bzero I removed final statement --- monitor.c | 1 - utils.c | 1 - 2 files changed, 2 deletions(-) diff --git a/monitor.c b/monitor.c index 9c13380..b006c3d 100644 --- a/monitor.c +++ b/monitor.c @@ -7,7 +7,6 @@ #include #define MAX_MEMORY 1048576 -#define PROGRAM_NAME 255 #define MAX_TRACK_SIZE 30 FILE *popen(const char *command, const char *mode); diff --git a/utils.c b/utils.c index 75abd1d..7dcadb4 100644 --- a/utils.c +++ b/utils.c @@ -16,7 +16,6 @@ char *va(const char *fmt, ...) va_start(ap, fmt); vsnprintf(dest, VA_BUFFER_SIZE, fmt, ap); va_end(ap); - dest[VA_BUFFER_SIZE - 1] = '\0'; return dest; }