In some malloc calls destined for strings, the size is calculated as sizeof(char) * len + 1. Example.
In most of bidib, its sizeof(char) * (len + 1). Ideally, should be consistent in all occurences, even if the resulting values don't change as sizeof(char) is likely always 1.
In some malloc calls destined for strings, the size is calculated as
sizeof(char) * len + 1
. Example.In most of bidib, its
sizeof(char) * (len + 1)
. Ideally, should be consistent in all occurences, even if the resulting values don't change as sizeof(char) is likely always 1.