Skip to content

Commit

Permalink
Fixed a bug in readNumber() where incorrect frequencies and duratio…
Browse files Browse the repository at this point in the history
…n were returned because the function was using an invalid buffer.
  • Loading branch information
end2endzone committed Aug 7, 2023
1 parent 246dc36 commit 1bd707c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/anyrtttl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const char * readNumber(const char * iBuffer, int & oValue, ReadCharFuncPtr iRea
oValue = 0;
while(isdigit(iReadCharFunc(iBuffer)))
{
oValue = (oValue * 10) + (readCharFunc(buffer) - '0');
oValue = (oValue * 10) + (readCharFunc(iBuffer) - '0');
iBuffer++;
}
return iBuffer;
Expand Down

0 comments on commit 1bd707c

Please sign in to comment.