mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2024-11-28 07:23:07 +01:00
Fix
This commit is contained in:
parent
1651ae8df9
commit
d6d2ae46d9
8
config.c
8
config.c
@ -42,7 +42,7 @@ static void add_preview(char *name, char *script, char *type, char *subtype,
|
||||
Preview p = (Preview){
|
||||
.name = name,
|
||||
.script = script,
|
||||
.script_len = strlen(script),
|
||||
.script_len = strlen(script) + 1,
|
||||
.type = type,
|
||||
.subtype = subtype,
|
||||
.ext = ext,
|
||||
@ -168,11 +168,9 @@ static int command(void)
|
||||
|
||||
static int end(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
while (1) {
|
||||
ret = accept(TOK_NEW_LN);
|
||||
CHECK_OK(ret);
|
||||
if (accept(TOK_NEW_LN) != STAT_OK)
|
||||
break;
|
||||
}
|
||||
|
||||
return STAT_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user