Fix a fscanf bug
This commit is contained in:
parent
13064c5ad7
commit
7432371fc0
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
printf("err: %d\n", err);
|
||||||
return -1;
|
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);
|
printf("Added onion service %s.onion from file\n", buffer1);
|
||||||
fscanf(ctx->rsock, "250 OK");
|
fscanf(ctx->rsock, "250 OK");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue