mirror of
https://gittea.dev/nova/th.git
synced 2025-10-25 20:24:33 -04:00
'refactoring'
This commit is contained in:
4
main.c
4
main.c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user