1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-01 21:18:10 +03:00

wrong alignment size calculation

spot by Florian Weimer <Weimer@CERT.Uni-Stuttgart.DE>
(This used to be commit eda0e7589f)
This commit is contained in:
Simo Sorce 2002-09-13 08:53:53 +00:00
parent 081b70cd8d
commit 10297d8cd3

View File

@ -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;
}