This commit is contained in:
Emil 2023-09-27 05:58:31 +00:00
parent bc2c675571
commit ecc79c90f7
No known key found for this signature in database
GPG Key ID: 5432DB986FDBCF8A

View File

@ -180,7 +180,6 @@ expand(char * buf, size_t len)
{ {
size_t i = 0; size_t i = 0;
char * str = ""; char * str = "";
++len;
assert(buf); assert(buf);
for (i = 0; i < len; ++i) for (i = 0; i < len; ++i)
{ {
@ -276,7 +275,9 @@ main(int argc, char ** argv)
if (!(start = find(buf, START)) if (!(start = find(buf, START))
|| !(stop = find(start, STOP))) || !(stop = find(start, STOP)))
{ die("No usable format located in '%s'", argv[1]); } { die("No usable format located in '%s'", argv[1]); }
init(argv, argc); init(argv, argc);
len = stop - start - strlen(STOP); len = stop - start - strlen(STOP);
memmove(buf, start, len); memmove(buf, start, len);
} /* EOL start stop*/ } /* EOL start stop*/