diff options
author | Pierre Ossman <ossman@cendio.se> | 2015-03-03 16:17:51 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2015-03-03 16:17:51 +0100 |
commit | a7bbe9c4a3b2090240173e45bebab86e5cba3b4b (patch) | |
tree | 0bdba695d5126806843d24245ff20b3b16f3a27a /common/rdr/FileInStream.cxx | |
parent | 5b3c5f49b103d45ce11cd7c0319c82b95ee61e58 (diff) | |
download | tigervnc-a7bbe9c4a3b2090240173e45bebab86e5cba3b4b.tar.gz tigervnc-a7bbe9c4a3b2090240173e45bebab86e5cba3b4b.zip |
Make sure Exceptions do not use unsafe format strings
Diffstat (limited to 'common/rdr/FileInStream.cxx')
-rw-r--r-- | common/rdr/FileInStream.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rdr/FileInStream.cxx b/common/rdr/FileInStream.cxx index 18a9169d..6d23aa2c 100644 --- a/common/rdr/FileInStream.cxx +++ b/common/rdr/FileInStream.cxx @@ -72,7 +72,7 @@ int FileInStream::overrun(int itemSize, int nItems, bool wait) 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; } |