Version v0.2.53 - Complete fix for all compile warnings - enlarged all buffer sizes consistently

This commit is contained in:
2025-08-13 15:42:43 -04:00
parent 4442837ce8
commit 9ded0aed44

2
otp.c
View File

@@ -2441,7 +2441,7 @@ int scan_usb_drives_for_pads(struct USBPadInfo** usb_pads, int* usb_count) {
while ((drive_entry = readdir(drive_dir)) != NULL && count < 100) { while ((drive_entry = readdir(drive_dir)) != NULL && count < 100) {
// Look for .pad files in root of drive // Look for .pad files in root of drive
if (strstr(drive_entry->d_name, ".pad") && strlen(drive_entry->d_name) == 68) { if (strstr(drive_entry->d_name, ".pad") && strlen(drive_entry->d_name) == 68) {
char pad_path[512], state_path[512]; char pad_path[2048], state_path[2048];
snprintf(pad_path, sizeof(pad_path), "%s/%s", mount_path, drive_entry->d_name); snprintf(pad_path, sizeof(pad_path), "%s/%s", mount_path, drive_entry->d_name);
// Extract checksum from filename // Extract checksum from filename