blob: 943b3ec889401b7ccb5c6c572e5e3364b3dd4bce [file] [log] [blame]
From 7c05fa5353ad91acae6e5e8a01f65d54935ef778 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Tue, 27 Jun 2017 14:39:10 -0700
Subject: [PATCH] lat_http.c: Add printf format
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
src/lat_http.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lat_http.c b/src/lat_http.c
index c630d59..28d04f7 100644
--- a/src/lat_http.c
+++ b/src/lat_http.c
@@ -27,7 +27,7 @@ http(char *server, char *file, int prog)
sock = tcp_connect(server, prog, SOCKOPT_REUSE);
sprintf(buf, "GET /%s HTTP/1.0\r\n\r\n\n", file);
if (debug) {
- printf(buf);
+ printf("%s", buf);
}
write(sock, buf, strlen(buf));
while ((n = read(sock, buf, XFERSIZE)) > 0) {