Skip to content

Commit fb15cc2

Browse files
committed
add gitignore
1 parent 1bd5875 commit fb15cc2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
minitox
2+
savedata.tox

minitox.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ struct DHT_node bootstrap_nodes[] = {
4141
{"2400:6180:0:d0::17a:a001", 33445, "B05C8869DBB4EDDD308F43C1A974A20A725A36EACCA123862FDE9945BF9D3E09"},
4242
};
4343

44-
#define LINE_MAX_SIZE 11512 // If input line's length surpassed this value, it will be truncated.
44+
#define LINE_MAX_SIZE 512 // If input line's length surpassed this value, it will be truncated.
4545

4646
#define PORT_RANGE_START 33445 // tox listen port range
4747
#define PORT_RANGE_END 34445
@@ -1279,6 +1279,7 @@ void repl_iterate(){
12791279
}
12801280

12811281
PRINT(CMD_MSG_PREFIX "%s", line); // take this input line as a command.
1282+
if (len == 0) continue; // continue to for_1. ignore empty line
12821283

12831284
if (line[0] == '/') {
12841285
char *l = line + 1; // skip leading '/'

0 commit comments

Comments
 (0)