#912 printf string precision wrong

closed-fixed
5
2013-05-25
2005-05-01
No

char s[10];
sprintf(s, "%3.3s", "abcd");
produces "abcd" where it should produce "abc". The
problem lies in printf_large.c. Used sdcc 2.5.0-pre1.

Shall I fix it before 2.5.0 release?

Discussion

  • Erik Petrich

    Erik Petrich - 2005-05-01

    Logged In: YES
    user_id=635249

    It doesn't seem particularly critical to me. (But then, I'm
    not using sprintf in anything either.)

     
  • Maarten Brock

    Maarten Brock - 2005-05-15
    • milestone: --> fixed
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks