Dear Jeroen, In message <20141011150346.150c0383...@gemini.denx.de> i wrote: > > Which is "better"? A is obviously much shorter and more elegant; but > B is much more robust - A will happily crash your system when you try > to print a string like "s%s%s%s%s%s%s%s%s%s%s" (not to mention that > this may open a classic attack vector to break into a running system).
Ignore me. This example was obviously crap. What I had in mind was something where you would use char *s; ... printf(s); Sorry... Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing. - Dick Brandon _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot