1From 7c05fa5353ad91acae6e5e8a01f65d54935ef778 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 27 Jun 2017 14:39:10 -0700
4Subject: [PATCH] lat_http.c: Add printf format
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7
8---
9Upstream-Status: Pending
10
11 src/lat_http.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/src/lat_http.c b/src/lat_http.c
15index c630d59..28d04f7 100644
16--- a/src/lat_http.c
17+++ b/src/lat_http.c
18@@ -27,7 +27,7 @@ http(char *server, char *file, int prog)
19 	sock = tcp_connect(server, prog, SOCKOPT_REUSE);
20 	sprintf(buf, "GET /%s HTTP/1.0\r\n\r\n\n", file);
21 	if (debug) {
22-		printf(buf);
23+		printf("%s", buf);
24 	}
25 	write(sock, buf, strlen(buf));
26 	while ((n = read(sock, buf, XFERSIZE)) > 0) {
27