Version v0.2.55 - Increased pad_path and state_path buffer sizes to 4096 bytes to eliminate all compile warnings

This commit is contained in:
2025-08-13 20:48:06 -04:00
parent 37bcb6a6d2
commit c7fae1ad1d

2
otp.c
View File

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