johannes-fetz / joengine

Jo Engine is an open source 2D and 3D game engine for the Sega Saturn written in C under MIT license
http://jo-engine.org/
MIT License
205 stars 32 forks source link

jo_memset: Check for 0 len #37

Closed slinga-homebrew closed 4 years ago

slinga-homebrew commented 4 years ago

Avoid infinite loop when len is 0 in jo_memset. I was porting coded that called memset and relied on memset(..., ..., 0) being safe.

I hate GIT it's complaining about all the line endings.