fix: do not add the more button
if all the content fit
This commit is contained in:
parent
e0cf2a6059
commit
61db53767c
@ -63,7 +63,8 @@ int main(int ac, char **av)
|
|||||||
if (content == NULL)
|
if (content == NULL)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
strcat(content, BUTTON);
|
if (strlen(content) == MAX_SIZE)
|
||||||
|
strcat(content, BUTTON);
|
||||||
|
|
||||||
int ret = write_file("README.md", content);
|
int ret = write_file("README.md", content);
|
||||||
free(content);
|
free(content);
|
||||||
|
Loading…
Reference in New Issue
Block a user