hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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) {