aboutsummaryrefslogtreecommitdiffstats
path: root/src/ipaccess
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-12-29 14:12:06 +0100
committerMax <msuraev@sysmocom.de>2017-12-29 14:12:06 +0100
commitec54daba5cb1482aa9e8a6af41576c419b8461f6 (patch)
tree47d901f47812c92d1c061dbfd10720d46f0b57f1 /src/ipaccess
parent0bd729f3add48a4b8f6a7f21a8a7daa34a0ad32d (diff)
Fix .deb builds
The code triggers following error: abisip-find.c:317:3: error: format not a string literal and no format arguments [-Werror=format-security] The error was introduced in 5bf1e15c55340f236d84f70d3d04c871403d3503. Change-Id: I613781495edbc53916ca70ff7b78d28ffabd3f5d
Diffstat (limited to 'src/ipaccess')
-rw-r--r--src/ipaccess/abisip-find.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/ipaccess/abisip-find.c b/src/ipaccess/abisip-find.c
index d94e18af1..4e1d192e4 100644
--- a/src/ipaccess/abisip-find.c
+++ b/src/ipaccess/abisip-find.c
@@ -312,12 +312,8 @@ static void handle_response(unsigned char *buf, int len)
base_stations_bump(changed);
printf("RX: %u \r", responses);
fflush(stdout);
- } else {
- char *line = parse_response(ctx, buf, len);
- printf(line);
- printf("\n");
- talloc_free(line);
- }
+ } else
+ printf("%s\n", parse_response(ctx, buf, len));
}
static int read_response(int fd)