From 7432371fc0da897d3f8aa2b8b2579ac806f70618 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Mon, 11 Feb 2019 10:25:27 +0100 Subject: [PATCH] Fix a fscanf bug --- src/tor_ctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tor_ctl.c b/src/tor_ctl.c index 75c3546..c056f9c 100644 --- a/src/tor_ctl.c +++ b/src/tor_ctl.c @@ -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"); }