hello I have a code like the one below
char *str ; strcpy(str, \"\\t<\"); strcat(str, time); strcat(str, \">[\"); strcat(s
This is much simpler and error-free from buffer overflows:
#define BUFFERSIZE 512 char str[BUFFERSIZE]; snprintf(str, BUFFERSIZE, "\t<%s>[%s](%s) $ ", time, user, baseName);