Mercurial > hg > index.cgi
comparison lwcc/cc-gencode.c @ 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 | 59b8c8b15bd4 |
children |
comparison
equal
deleted
inserted
replaced
507:dd9c5cef2e80 | 508:10f62dc61a75 |
---|