None of these instances were really a problem, but using it upsets some downstream packagers (notably R). The easiest way to keep them happy is to stop using it and (mostly) switch to snprintf() instead.
Code in test/*.c doesn't go into the library, so you could consider leaving those ones as is. Hmmm… If Apple is going to be pushy about removing sprintf… never mind.
None of these instances were really a problem, but using it upsets some downstream packagers (notably R). The easiest way to keep them happy is to stop using it and (mostly) switch to snprintf() instead.
Fixes #1586