commit | a7bbe9c4a3b2090240173e45bebab86e5cba3b4b | [log] [tgz] |
---|---|---|
author | Pierre Ossman <ossman@cendio.se> | Tue Mar 03 16:17:51 2015 +0100 |
committer | Pierre Ossman <ossman@cendio.se> | Tue Mar 03 16:17:51 2015 +0100 |
tree | 0bdba695d5126806843d24245ff20b3b16f3a27a | |
parent | 5b3c5f49b103d45ce11cd7c0319c82b95ee61e58 [diff] [blame] |
Make sure Exceptions do not use unsafe format strings
diff --git a/common/rdr/FileInStream.cxx b/common/rdr/FileInStream.cxx index 18a9169..6d23aa2 100644 --- a/common/rdr/FileInStream.cxx +++ b/common/rdr/FileInStream.cxx
@@ -72,7 +72,7 @@ size_t n = fread((U8 *)end, b + sizeof(b) - end, 1, file); if (n < 1) { if (n < 0 || ferror(file)) - throw Exception(strerror(errno)); + throw SystemException("fread", errno); if (feof(file)) throw EndOfStream(); if (n == 0) { return 0; }