Menu

#2105 sprintf multi param format strings

None
closed-fixed
nobody
2019-01-02
2018-12-13
Moritz Buhl
No

Hi,
I use the following sprintf function:

sprintf("%*d", width, num);

It takes two arguments. I think it is not supported by f_sprintf as it only passes one argument to
the system's sprintf.
Instead of fixing this, I suggest adding * to the illegal_spec array in sprintf_specifier.

Discussion

  • Ethan Merritt

    Ethan Merritt - 2018-12-13
    • status: open --> pending-accepted
    • Group: -->
    • Priority: -->
     
  • Ethan Merritt

    Ethan Merritt - 2018-12-13

    Good idea.
    Applied

     
  • Ethan Merritt

    Ethan Merritt - 2019-01-02
    • Status: pending-accepted --> closed-fixed
     

Log in to post a comment.