linux lib compatibility

This commit is contained in:
2026-06-03 09:20:00 +02:00
parent cec92cacd1
commit 564292b03e
16 changed files with 75 additions and 166 deletions
+1 -2
View File
@@ -5,7 +5,6 @@
#include <stdlib.h>
#include <string.h>
#include "include/utils.h"
extern struct editorConfig E;
@@ -113,7 +112,7 @@ char *highlight_line(const char *line, int *length) {
// Allocate generously based on line length to avoid overflow.
int line_len = strlen(line);
int buf_size = line_len * 32 + 256;
char *result = bAlloc(buf_size);
char *result = malloc(buf_size);
int result_pos = 0;
int i = 0;