IoIxD 7ec43022c1
Fix segfault in ExportWaveAsCode (#3769)
`char *txtData = (char *)RL_CALLOC(waveDataSize * 6 + 2000, sizeof(char));`

assumes every chunk being added to txtData is 6 bytes. This is not always true, sometimes a newline is involved and the data becomes 12 bytes instead, and this can cause a random segfault.

This commit changes `6` to `12`, and explains why in the comment.
2024-02-01 21:16:57 +01:00
..
2024-02-01 00:03:06 +01:00
2024-01-02 20:58:12 +01:00
2024-01-29 21:16:17 +01:00
2024-01-02 20:58:12 +01:00
2024-02-01 00:05:30 +01:00
2024-01-22 11:35:55 +01:00
2023-11-08 19:34:38 +01:00
2024-01-02 20:58:12 +01:00
2024-01-02 20:58:12 +01:00