diff options
author | Matthias Huetsch [mhu] <matthias.huetsch@oracle.com> | 2010-12-13 11:06:14 +0100 |
---|---|---|
committer | Matthias Huetsch [mhu] <matthias.huetsch@oracle.com> | 2010-12-13 11:06:14 +0100 |
commit | b480a8b31cfa6e4b24c111c32905b58e33a52138 (patch) | |
tree | 41cc052a715eb7df15cb846bfb26707fffec9f21 /idlc/source/preproc/tokens.c | |
parent | 340b22a09175abb796dc7df234962ef958b1ad6f (diff) | |
parent | e944bed1166d34170eaa6ff3dcabfc73a5d81edf (diff) |
Update from master repository (DEV300_m95).
Diffstat (limited to 'idlc/source/preproc/tokens.c')
-rw-r--r-- | idlc/source/preproc/tokens.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/idlc/source/preproc/tokens.c b/idlc/source/preproc/tokens.c index 6df35ae1f238..23ab88a5a9e3 100644 --- a/idlc/source/preproc/tokens.c +++ b/idlc/source/preproc/tokens.c @@ -474,7 +474,8 @@ void if (wbp >= &wbuf[OBS]) { - write(1, wbuf, OBS); + if (write(1, wbuf, OBS) != OBS) + error(ERROR, "short write!"); if (wbp > &wbuf[OBS]) memcpy(wbuf, wbuf + OBS, wbp - &wbuf[OBS]); wbp -= OBS; @@ -490,7 +491,8 @@ void { if (wbp > wbuf) { - write(1, wbuf, wbp - wbuf); + if (write(1, wbuf, wbp - wbuf) != wbp - wbuf) + error(ERROR, "short write!"); wbp = wbuf; } } |