summaryrefslogtreecommitdiffstats
path: root/src/io/uristream.cpp
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2009-11-29 19:01:07 +0000
committerTed Gould <ted@gould.cx>2009-11-29 19:01:07 +0000
commit29d3c0b15028e61f176df3a75189bf0959d0d03e (patch)
tree727afe596c693a9bdd098d72618abd9ceb0d1969 /src/io/uristream.cpp
parentAdd the build dir dbus directory to grab some headerfiles for distcheck. (diff)
parenthopefully fix build on linux (diff)
downloadinkscape-29d3c0b15028e61f176df3a75189bf0959d0d03e.tar.gz
inkscape-29d3c0b15028e61f176df3a75189bf0959d0d03e.zip
Merging in from trunk
(bzr r8254.1.37)
Diffstat (limited to 'src/io/uristream.cpp')
-rw-r--r--src/io/uristream.cpp5
1 files changed, 4 insertions, 1 deletions
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;