• Show log

    Commit

  • Hash : d9f37853
    Author : Ryan C. Gordon
    Date : 2015-03-24T03:12:35

    Make SDL error string formatting deal with nasty corner cases.
    
    We continued looping while maxlen > 0, but maxlen was unsigned, so an overflow
     would make it a large number instead of negative. Fixed.
    
    Some snprintf() implementations might return a negative value if there isn't
     enough space, and we now check for that.
    
    Don't overrun the SDL error message buffer, if snprintf() returned the number
     of chars it wanted to write instead of the number it did.
    
    snprintf is a portability mess, we should just never use the C runtime for it.
    
    Fixes Bugzilla #2049.
    

  • Properties

  • Git HTTP https://git.kmx.io/kc3-lang/SDL.git
    Git SSH git@git.kmx.io:kc3-lang/SDL.git
    Public access ? public
    Description

    Fork of https://github.com/libsdl-org/SDL

    Users
    thodg_m kc3_lang_org thodg_w www_kmx_io thodg thodg_l
    Tags