Fixed test libug receiver parsing

This commit is contained in:
Martin Pulec
2021-02-10 12:57:34 +01:00
parent b4a8d2e928
commit 48663c2659

View File

@@ -72,7 +72,7 @@ int main(int argc, char *argv[]) {
init_params.sender = argv[0];
if (strchr(argv[0], ':') != NULL) {
char *port_str = strchr(argv[0], ':') + 1;
*strchr(argv[1], ':') = '\0';
*strchr(argv[0], ':') = '\0';
init_params.port = atoi(port_str);
}
}