-/*
- * This function just concats two strings in place, it should only be used
- * for concatting order to the name of a file or concatting color codes.
- * Otherwise, the buffer size would have to be increased.
- *
- */
-char *concat(const char *str1, const char *str2) {
- static char concatbuf[32];
- (void)snprintf(concatbuf, sizeof(concatbuf), "%s%s", str1, str2);
- return concatbuf;