fix: general readability improvements

This commit is contained in:
frosty
2026-03-17 12:07:07 -04:00
parent 5a6ad26974
commit 8c6632502f
10 changed files with 161 additions and 73 deletions

View File

@@ -1,4 +1,5 @@
#include "Display.h"
#include "Config.h"
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
@@ -20,7 +21,7 @@ char *pretty_display_url(const char *input) {
}
size_t input_len = strlen(start);
char temp[512];
char temp[BUFFER_SIZE_MEDIUM];
strncpy(temp, start, sizeof(temp) - 1);
temp[sizeof(temp) - 1] = '\0';