1
0
mirror of https://gittea.dev/nova/th.git synced 2025-10-25 20:24:33 -04:00

'refactoring'

This commit is contained in:
nova
2025-10-24 19:31:49 +02:00
parent d5a816ae38
commit 3da05ce27f
3 changed files with 34 additions and 31 deletions

4
main.c
View File

@@ -187,8 +187,8 @@ void init() {
curs_set(0);
/*file_modifiers = (FILE_MODIFIERS_HIDDEN_FILES | FILE_MODIFIERS_SORT_BITMASK);*/
input = malloc(sizeof(char)*255); /* size of input buffer, out of bounds access will not be accounted for */
memset(input, 0, 255);
input = malloc(INPUT_BUFFER_SIZE); /* size of input buffer, out of bounds access will not be accounted for */
memset(input, 0, INPUT_BUFFER_SIZE);
status = (STATUS_RUN_BACKEND | STATUS_UPDATE_SCREEN_MASK | STATUS_RELOAD_DIRECTORY);
if (getuid() == 0) {
status |= STATUS_USER_ROOT;