Bug? sprintf(): odd behaviour with mismatched place-holders/lists

    Jul 22 2006 | 10:05 am
    > Summary: > Provide a descriptive summary of the issue.
    If I send sprintf a list of strings longer than the number of matching "%s" place-holders, I get the first symbol and then the tail end of the list. The behaviour is different with ints (see below).
    > Steps to Reproduce: > In numbered format, detail the exact steps taken to produce the bug.
    Patcher enclosed. Click the message box.
    > Expected Results: > Describe what you expected to happen when you executed the steps above.
    "A.B.C" or "1.2.3"
    > Actual Results: > Please explain what actually occurred when steps above are executed.
    "A.D.E" or "3.4.5"
    > Regression: > Describe circumstances where the problem occurs or does not occur, > such as software versions and/or hardware configurations.
    Happens in 4.5.7 and 4.6b11. OS X 4.5.7. TiBook, 1GHz, 768Mb RAM, dirty screen, dead Firewire port, broken CD drive, ZKM, Karlsruhe, Germany.
    nick rothwell -- composition, systems, performance -- http:// www.cassiel.com