]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r2996: readability fix for length check; no semantic changes
authorGerald Carter <jerry@samba.org>
Fri, 15 Oct 2004 15:04:01 +0000 (15:04 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:52:58 +0000 (10:52 -0500)
source/printing/nt_printing.c

index 6474516ebcdec3b71007a97c9661db9b1dc0e95a..8a67bfaed4d418bb85dbd3f1a024741ca791e9e1 100644 (file)
@@ -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);