Code cleanup: Difference between revisions

Jump to navigation Jump to search
Line 38: Line 38:


For example, use snprintf() instead of sprintf() and strncpy() instead of strcpy().
For example, use snprintf() instead of sprintf() and strncpy() instead of strcpy().
And please do not forget that snprintf and strncpy does not necessarily add a trailing 0 byte.
20

edits

Navigation menu