* Added CLICON_CLI_LINES_DEFAULT for setting window row size of raw terminals
  * Added  enum HIDE to CLICON_CLI_GENMODEL for auto-cli
This commit is contained in:
Olof hagsand 2020-06-18 11:28:47 +02:00
parent fade9dcfd5
commit ee29452d24
11 changed files with 37 additions and 767 deletions

View file

@ -1429,7 +1429,7 @@ clixon_json_parse_file(int fd,
}
break;
}
if (len>=jsonbuflen-1){ /* Space: one for the null character */
if (len >= jsonbuflen-1){ /* Space: one for the null character */
oldjsonbuflen = jsonbuflen;
jsonbuflen *= 2;
if ((jsonbuf = realloc(jsonbuf, jsonbuflen)) == NULL){