]> wimlib.net Git - wimlib/commit
dentry.c: Cast name length u16 => u32 whenever adding 2
authorEric Biggers <ebiggers3@gmail.com>
Sat, 14 Jun 2014 04:41:22 +0000 (23:41 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Sat, 14 Jun 2014 04:54:51 +0000 (23:54 -0500)
commit97eb2f8c1c4cf7b3eaf72b859ab5940e863a8cd8
treefc03389ae201479c4f10726e92a67aaf3769c6ec
parent66040ab01dd2fd7c222cb1e3b8ae5b603a71e585
dentry.c:  Cast name length u16 => u32 whenever adding 2

Due to integer promotion this won't make a difference if an 'int' is 4+
bytes anyway, but make the intention clear: this computation should not
overflow.
src/dentry.c