Fix a fscanf bug

This commit is contained in:
Quentin Dufour 2019-02-11 10:25:27 +01:00
parent 13064c5ad7
commit 7432371fc0

View file

@ -44,7 +44,7 @@ int tor_ctl_add_onion(struct tor_ctl* ctx, struct tor_os_str* tos, int* port) {
printf("err: %d\n", err);
return -1;
}
fscanf(ctx->rsock, "-ServiceID=%s", buffer1);
fscanf(ctx->rsock, "-ServiceID=%s\n", buffer1);
printf("Added onion service %s.onion from file\n", buffer1);
fscanf(ctx->rsock, "250 OK");
}