NEW 103586
Stop using the static char buffer[thingy] idiom for stringifying objects
https://bugs.webkit.org/show_bug.cgi?id=103586
Summary Stop using the static char buffer[thingy] idiom for stringifying objects
Filip Pizlo
Reported 2012-11-28 17:50:46 PST
We often do things like: const char* Thingy::describe() { static char buffer[256]; snprintf(buffer, sizeof(buffer), "stuffs"); return buffer; } We should stop doing that.
Attachments
Note You need to log in before you can comment on or make changes to this bug.