mirror of
https://github.com/tsl0922/ttyd.git
synced 2026-02-19 08:24:24 +01:00
@@ -270,7 +270,7 @@ main(int argc, char **argv) {
|
||||
}
|
||||
break;
|
||||
case 'i':
|
||||
strncpy(iface, optarg, sizeof(iface));
|
||||
strncpy(iface, optarg, sizeof(iface) - 1);
|
||||
iface[sizeof(iface) - 1] = '\0';
|
||||
break;
|
||||
case 'c':
|
||||
|
||||
Reference in New Issue
Block a user