mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2024-12-01 00:43:08 +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){
|
Preview p = (Preview){
|
||||||
.name = name,
|
.name = name,
|
||||||
.script = script,
|
.script = script,
|
||||||
.script_len = strlen(script),
|
.script_len = strlen(script) + 1,
|
||||||
.type = type,
|
.type = type,
|
||||||
.subtype = subtype,
|
.subtype = subtype,
|
||||||
.ext = ext,
|
.ext = ext,
|
||||||
@ -168,11 +168,9 @@ static int command(void)
|
|||||||
|
|
||||||
static int end(void)
|
static int end(void)
|
||||||
{
|
{
|
||||||
int ret;
|
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
ret = accept(TOK_NEW_LN);
|
if (accept(TOK_NEW_LN) != STAT_OK)
|
||||||
CHECK_OK(ret);
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return STAT_OK;
|
return STAT_OK;
|
||||||
|
Loading…
Reference in New Issue
Block a user