mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
wrong alignment size calculation
spot by Florian Weimer <Weimer@CERT.Uni-Stuttgart.DE>
This commit is contained in:
@ -3366,7 +3366,9 @@ uint32 spoolss_size_printer_info_2(PRINTER_INFO_2 *info)
|
||||
* it is easier to maintain the calculation here and
|
||||
* not place the burden on the caller to remember. --jerry
|
||||
*/
|
||||
size += size % 4;
|
||||
if ((size % 4) != 0) {
|
||||
size += 4 - (size % 4);
|
||||
}
|
||||
|
||||
return size;
|
||||
}
|
||||
|
Reference in New Issue
Block a user