diff --git a/parseable.c b/parseable.c index 91e2408..1af88ed 100644 --- a/parseable.c +++ b/parseable.c @@ -1205,8 +1205,8 @@ spaceformat(char *istr, char *ostr) if (!rmspaces) { *ostr = '('; - strcpy(ostr+1, istr); - strcat(ostr, ")"); + strncpy(ostr+1, istr, PNAMLEN); + strncat(ostr, ")", 1); } // formatting with underscores without parenthesis required else