Sure enough, if I revert libbu to 48961 and add some tests to test_vls, they 
fail:

    /* various widths */
    fails += test_vls("he%*so", 2, "ll");
    fails += test_vls("he%*so", 2, "llll");
    fails += test_vls("he%*so", 4, "ll");

he%*so                   -> 'hello' [PASS]
he%*so                   -> 'hello' [FAIL]  (should be: 'hellllo')
he%*so                   -> 'he  llo' [PASS]

So the old bu_vls_printf() implementation was wrong for %*s.

Cheers!
Sean


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
BRL-CAD Developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to