diff options
author | Simo Sorce <idra@samba.org> | 2002-12-31 10:25:11 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2002-12-31 10:25:11 +0000 |
commit | 0747016dfc280d9eac3e388f7b705a4351b55513 (patch) | |
tree | 9b84999e435e39ff376f33cec078d45e2f47bb4d /source3 | |
parent | bb9c3a01e7b1c0c3fa25dd60a09bf2635ae5daf2 (diff) | |
download | samba-0747016dfc280d9eac3e388f7b705a4351b55513.tar.gz samba-0747016dfc280d9eac3e388f7b705a4351b55513.tar.bz2 samba-0747016dfc280d9eac3e388f7b705a4351b55513.zip |
from HEAD:
fix for bad check spotted by Ray Simard <ray@sylvan-glade.com>
(This used to be commit bcc633c4097661447731bda24a38be62c69bbed5)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/reply.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index de15faec81..4335728afc 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -1888,7 +1888,7 @@ int reply_writebraw(connection_struct *conn, char *inbuf,char *outbuf, int size, DEBUG(3,("writebraw1 fnum=%d start=%.0f num=%d wrote=%d sync=%d\n", fsp->fnum, (double)startpos, (int)numtowrite, (int)nwritten, (int)write_through)); - if (nwritten < numtowrite) { + if (nwritten < (ssize_t)numtowrite) { END_PROFILE(SMBwritebraw); return(UNIXERROR(ERRHRD,ERRdiskfull)); } |