]> git.proxmox.com Git - pve-cluster.git/commit
use unsigned long for strtoul result
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 3 Mar 2017 08:17:58 +0000 (09:17 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 6 Mar 2017 14:33:44 +0000 (15:33 +0100)
commit1e1cf6c9df2564c30c4bfa7f98d18319fd4fe14b
treed515d500397085c01e3b7b2eda0fdd058c402d35
parent45c18552865c9302eb4556cb91d68c9f9840b94d
use unsigned long for strtoul result

strtoul gives back an unsigned long int, which may or may not be wider
than a guint32 (depending on the platform)

when it is wider, the assignment would parse vmids bigger than 2^32 but
truncate them, giving back an invalid vmid

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
data/src/memdb.c