Mercurial > hg > index.cgi
view COPYING @ 508:10f62dc61a75
Fix bad usage of sprintf()
Usage of sprintf() to append to a string in the form of
sprintf(buf, "%s...", buf...) is undefined, regardless whether it
worked on a lot of older systems. It was always a bad idea and it
now breaks on current glibc and gcc development environments.
The moral: if any of your code uses sprintf() in a way similar to
the above, fix it. It may not fail in a benign way.
author | William Astle <lost@l-w.ca> |
---|---|
date | Sun, 10 May 2020 22:38:24 -0600 |
parents | 659e0e4ce50c |
children |
line wrap: on
line source
See the file GPL3 for a copy of the GNU General Public License, version 3, under which the majority of this distribution is licensed. Any exceptions will be noted in the relevant source files.