From 01402abfa2d664bcaacce6539cdc7e1a8bf6a902 Mon Sep 17 00:00:00 2001 From: Kreeblah Date: Mon, 25 Jan 2021 15:06:58 -0800 Subject: [PATCH] Corrected syntax --- Cart_Reader/NES.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Cart_Reader/NES.ino b/Cart_Reader/NES.ino index fab606d..343c2a6 100644 --- a/Cart_Reader/NES.ino +++ b/Cart_Reader/NES.ino @@ -861,6 +861,8 @@ unsigned char* getNESHeaderForFileInfo(size_t prg_size, size_t chr_size, uint32_ i++; } while(nesDb.available() && temp_char != 0 && temp_char != '\n'); + i--; + if(temp_line[i] == '\n') { temp_line[i] = 0;