--- uae/src/uaeexe.c 2018/04/24 16:56:44 1.1.1.2 +++ uae/src/uaeexe.c 2018/04/24 17:14:24 1.1.1.3 @@ -66,8 +66,8 @@ int uaeexe(char *cmd) if(!first) first = nw; if(last) { - last->next = nw; - last = nw; + last->next = nw; + last = nw; } else last = nw; return UAEEXE_OK; @@ -87,7 +87,7 @@ static char *get_cmd(void) char *s; if(!first) return NULL; - s = first->cmd; + s = first->cmd; cmd = first; first = first->next; if(!first) last = NULL; free(cmd); @@ -105,8 +105,8 @@ static uae_u32 uaeexe_server(void) char *dst; if(ARG(0) && !running) { - running = 1; - write_log("Remote CLI started.\n"); + running = 1; + write_log("Remote CLI started.\n"); } cmd = get_cmd(); if(!cmd) return 0;