From 8381cd6020c57db59cf359ba4384424b93e51018 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Wed, 28 Dec 2016 14:19:08 +0100 Subject: [PATCH] :ambulance: removed unsafe call to strerror #403 --- src/json.hpp | 2 +- src/json.hpp.re2c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/json.hpp b/src/json.hpp index 67d05cf2..4515ca67 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -9077,7 +9077,7 @@ class basic_json // immediately abort if stream is erroneous if (s.fail()) { - throw std::invalid_argument("stream error: " + std::string(strerror(errno))); + throw std::invalid_argument("stream error"); } // fill buffer diff --git a/src/json.hpp.re2c b/src/json.hpp.re2c index cbd8b220..6d649db3 100644 --- a/src/json.hpp.re2c +++ b/src/json.hpp.re2c @@ -9077,7 +9077,7 @@ class basic_json // immediately abort if stream is erroneous if (s.fail()) { - throw std::invalid_argument("stream error: " + std::string(strerror(errno))); + throw std::invalid_argument("stream error"); } // fill buffer