summaryrefslogtreecommitdiff
path: root/src/tool_main.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-06-16 11:30:36 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-06-16 23:38:13 +0200
commit5385450afd61328e7d24b50eeffc2b1571cd9e2f (patch)
treeabed28837e3bc58605b3963280b9b2aec62815d8 /src/tool_main.c
parentce2cc568f822605ae4258ec25b87b59b24c7bd19 (diff)
downloadcurl-5385450afd61328e7d24b50eeffc2b1571cd9e2f.tar.gz
curl: prevent binary output spewed to terminal
... unless "--output -" is used. Binary detection is done by simply checking for a binary zero in early data. Added test 1425 1426 to verify. Closes #1512
Diffstat (limited to 'src/tool_main.c')
-rw-r--r--src/tool_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool_main.c b/src/tool_main.c
index 7e742ffca..089a317d4 100644
--- a/src/tool_main.c
+++ b/src/tool_main.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms