mirror of
https://github.com/onyx-and-iris/vmrcli.git
synced 2024-11-15 17:40:56 +00:00
check length of string for 'Q'
This commit is contained in:
parent
278abf8e86
commit
e7ea31eb21
@ -124,7 +124,7 @@ void interactive(T_VBVMR_INTERFACE *vmr)
|
|||||||
|
|
||||||
while (fgets(input, MAX_LINE, stdin) != NULL)
|
while (fgets(input, MAX_LINE, stdin) != NULL)
|
||||||
{
|
{
|
||||||
if (strncmp(input, "Q", 1) == 0 || strncmp(input, "q", 1) == 0)
|
if (strlen(input) == 2 && (strncmp(input, "Q", 1) == 0 || strncmp(input, "q", 1) == 0))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
set_parameters(vmr, input);
|
set_parameters(vmr, input);
|
||||||
|
Loading…
Reference in New Issue
Block a user