summaryrefslogtreecommitdiff
path: root/soltools/cpp/_tokens.c
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2009-08-26 14:24:27 +0000
committerVladimir Glazounov <vg@openoffice.org>2009-08-26 14:24:27 +0000
commit8990690b587ab95de007ef709f4503e768089955 (patch)
tree2f6ee112c64b5e3d4d94d9cdb85dbd9a5beeded0 /soltools/cpp/_tokens.c
parent99e6c346064861f49c0ef1da24fe652fc5da2618 (diff)
CWS-TOOLING: integrate CWS mh132
2009-08-06 12:20:52 +0200 mh r274712 : corrected error handling 2009-08-05 13:41:20 +0200 mh r274661 : #i93040# NetBSD compile issue 2009-08-05 13:40:32 +0200 mh r274660 : #i93040# NetBSD compile issue 2009-08-05 13:38:46 +0200 mh r274659 : #i93040# NetBSD compile issue 2009-08-05 13:29:15 +0200 mh r274658 : #i95193# increase includes limit 2009-08-05 13:22:07 +0200 mh r274657 : #i96811# honor return values of read calls 2009-08-05 13:16:47 +0200 mh r274654 : #i96802# honor return values of write calls 2009-08-05 13:07:06 +0200 mh r274653 : #i99835# do DestroyData 2009-08-05 13:01:42 +0200 mh r274651 : #i68557#: allow more dpi resolutions in scanner dialogue 2009-07-24 14:46:04 +0200 mh r274307 : #i103770# missing fclose added
Diffstat (limited to 'soltools/cpp/_tokens.c')
-rw-r--r--soltools/cpp/_tokens.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/soltools/cpp/_tokens.c b/soltools/cpp/_tokens.c
index 77c8bb4384ec..863de2fbef02 100644
--- a/soltools/cpp/_tokens.c
+++ b/soltools/cpp/_tokens.c
@@ -473,11 +473,13 @@ void
if (wbp >= &wbuf[OBS])
{
- write(1, wbuf, OBS);
+ if ( write(1, wbuf, OBS) != -1 ) {
if (wbp > &wbuf[OBS])
memcpy(wbuf, wbuf + OBS, wbp - &wbuf[OBS]);
wbp -= OBS;
}
+ else exit(1);
+ }
}
trp->tp = tp;
if (cursource->fd == 0)
@@ -489,8 +491,10 @@ void
{
if (wbp > wbuf)
{
- write(1, wbuf, wbp - wbuf);
- wbp = wbuf;
+ if ( write(1, wbuf, wbp - wbuf) != -1)
+ wbp = wbuf;
+ else
+ exit(1);
}
}