From 49e03ce9c287145a875165538ee90b7ccd575004 Mon Sep 17 00:00:00 2001 From: theAdib Date: Sun, 2 Aug 2009 15:04:57 +0000 Subject: FIX 407115 test writing into file and throw exception upstream if needed (bzr r8384) --- src/io/uristream.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/io/uristream.cpp b/src/io/uristream.cpp index f529c7f8b..05d7f020a 100644 --- a/src/io/uristream.cpp +++ b/src/io/uristream.cpp @@ -429,7 +429,10 @@ void UriOutputStream::put(int ch) throw(StreamException) if (!outf) return; uch = (unsigned char)(ch & 0xff); - fputc(uch, outf); + if (fputc(uch, outf) == EOF) { + Glib::ustring err = "ERROR writing to file "; + throw StreamException(err); + } //fwrite(uch, 1, 1, outf); break; -- cgit v1.2.3