diff options
author | Gerald Carter <jerry@samba.org> | 2004-10-15 15:04:01 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:52:58 -0500 |
commit | 534c4a250435419456f280b90e0d6bda86981a64 (patch) | |
tree | 5ac23c8038aa0fa825c074acfde9c308d1a36ff5 | |
parent | db2fa3bde8d216390c2eb101bc1aa9dcabed1d45 (diff) | |
download | samba-534c4a250435419456f280b90e0d6bda86981a64.tar.gz samba-534c4a250435419456f280b90e0d6bda86981a64.tar.bz2 samba-534c4a250435419456f280b90e0d6bda86981a64.zip |
r2996: readability fix for length check; no semantic changes
(This used to be commit 668ab6984afa7d9e0c15e87c5d45df7560e467e6)
-rw-r--r-- | source3/printing/nt_printing.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index 6474516ebc..8a67bfaed4 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -3778,7 +3778,7 @@ static uint32 update_driver_init_2(NT_PRINTER_INFO_LEVEL_2 *info) len += pack_values( &info->data, buf+len, buflen-len ); - if (buflen != len) { + if (buflen < len) { char *tb; tb = (char *)Realloc(buf, len); |