diff options
| author | 2025-02-23 03:32:59 +1100 | |
|---|---|---|
| committer | 2025-02-23 03:32:59 +1100 | |
| commit | f55e7d697c7cd7f988b3220f476fb735476252be (patch) | |
| tree | 714d04084590042c6799ccd65382c61e2867bd8f /src/lib | |
| parent | aa32b6e89b9183aed1bcfc1c5d84f6e107c39072 (diff) | |
srcclean and cleanup.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/formats/cassimg.cpp | 4 | ||||
| -rw-r--r-- | src/lib/formats/tzx_cas.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/formats/cassimg.cpp b/src/lib/formats/cassimg.cpp index fc953c2bdf2..11545793e18 100644 --- a/src/lib/formats/cassimg.cpp +++ b/src/lib/formats/cassimg.cpp @@ -887,8 +887,8 @@ cassette_image::error cassette_image::legacy_construct(const LegacyWaveFiller *l without knowing how much data available in the image. Having wrong header with size bigger than image couses illegal access beyond image data. Desired state is: - length = args.fill_wave(&samples[pos], args.chunk_size, chunk.get()); - aslo the fix for tap is commented out in 'tap_cas_fill_wave' + length = args.fill_wave(&samples[pos], args.chunk_size, chunk.get()); + aslo the fix for tap is commented out in 'tap_cas_fill_wave' */ length = args.fill_wave(&samples[pos], sample_count - pos, chunk.get()); if (length < 0) diff --git a/src/lib/formats/tzx_cas.cpp b/src/lib/formats/tzx_cas.cpp index 39fe054e017..d2622f0a51f 100644 --- a/src/lib/formats/tzx_cas.cpp +++ b/src/lib/formats/tzx_cas.cpp @@ -870,7 +870,7 @@ static int tap_cas_fill_wave(int16_t *buffer, int length, const uint8_t *bytes) length -= data_size; if (length < 0) { - data_size += length; // Take as much as we can. + data_size += length; // Take as much as we can. } */ size += tzx_cas_handle_block(&p, bytes, 1000, data_size, 2168, pilot_length, 667, 735, 855, 1710, 8); |
