uniba-swt / libbidib

A library for communication with a BiDiB (www.bidib.org) system using a serial connection.
GNU General Public License v3.0
10 stars 4 forks source link

Inconsistent paranthesis in malloc size arg #26

Closed BLuedtke closed 1 year ago

BLuedtke commented 1 year ago

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.