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

nick rothwell | project cassiel's icon

> 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.

Max Patch
Copy patch and select New From Clipboard in Max.

nick rothwell -- composition, systems, performance -- http://
www.cassiel.com