diff --git a/create_short.c b/create_short.c index 0833cf1..45fff7a 100644 --- a/create_short.c +++ b/create_short.c @@ -63,7 +63,8 @@ int main(int ac, char **av) if (content == NULL) return 1; - strcat(content, BUTTON); + if (strlen(content) == MAX_SIZE) + strcat(content, BUTTON); int ret = write_file("README.md", content); free(content);