commit | c3f6f8612bdab5959950a58291bd61d1d42d996b | [log] [tgz] |
---|---|---|
author | Markus Elfring <elfring@users.sourceforge.net> | Tue May 09 17:51:30 2017 -0700 |
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | Wed May 10 14:39:34 2017 -0700 |
tree | 05312fe544d46f3b9edc25b12088e967b1f4de8e | |
parent | 63c9576544718a949460865588981b70bb717020 [diff] |
Input: switch to using sizeof(*type) when allocating memory Instead of specifying type explicitly, derive it from the type of pointer when allocating memory, which is considered safer practice. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>