Version v0.2.54 - Final fix for remaining compile warning by increasing user_mount_path buffer to 2048 bytes

This commit is contained in:
2025-08-13 18:14:42 -04:00
parent 9ded0aed44
commit 37bcb6a6d2

2
otp.c
View File

@@ -2388,7 +2388,7 @@ int scan_usb_drives_for_pads(struct USBPadInfo** usb_pads, int* usb_count) {
while ((user_entry = readdir(user_dir)) != NULL && count < 100) { while ((user_entry = readdir(user_dir)) != NULL && count < 100) {
if (user_entry->d_name[0] == '.') continue; if (user_entry->d_name[0] == '.') continue;
char user_mount_path[1024]; char user_mount_path[2048];
snprintf(user_mount_path, sizeof(user_mount_path), "%s/%s", mount_path, user_entry->d_name); snprintf(user_mount_path, sizeof(user_mount_path), "%s/%s", mount_path, user_entry->d_name);
// Scan this mount point for pads // Scan this mount point for pads