Skip to content
  • Jay Satiro's avatar
    mprintf: Fix processing of width and prec args · 68701e51
    Jay Satiro authored
    Prior to this change a width arg could be erroneously output, and also
    width and precision args could not be used together without crashing.
    
    "%0*d%s", 2, 9, "foo"
    
    Before: "092"
    After: "09foo"
    
    "%*.*s", 5, 2, "foo"
    
    Before: crash
    After: "   fo"
    
    Test 557 is updated to verify this and more
    68701e51
Loading