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