omf2097 / openomf

One Must Fall 2097 Remake
http://www.openomf.org
MIT License
372 stars 40 forks source link

formats: Fix buffer overflow in sd_script_encoded_length() #370

Closed mrannanj closed 4 years ago

mrannanj commented 4 years ago

sizeof(tmp)-s can easily be less than zero there, and since tmp is not used elsewhere, we can just remove the -s.

katajakasa commented 4 years ago

Looks good to me :)