rumblefrog / a2s-rs

Rust implementation of Source Query
MIT License
20 stars 14 forks source link

Fix ReadCString looping infinitely #1

Closed tAq5Z6eE closed 4 years ago

tAq5Z6eE commented 4 years ago

ReadCString previously looped infinitely if the last byte of the data was not 0 as the cursor kept at the same position and therefore repeatedly added the same byte into str_vec.

rumblefrog commented 4 years ago

Thanks!