diff options
author | Dmitrij D. Czarkoff <czarkoff@gmail.com> | 2015-12-28 11:07:41 +0100 |
---|---|---|
committer | Dmitrij D. Czarkoff <czarkoff@gmail.com> | 2015-12-28 11:07:41 +0100 |
commit | d0b041f17c34fc36fc8121cfe23e2da2b79cf4fa (patch) | |
tree | 84427dabd132f588f0d0d9888a8b272f086e35ab /src/util.c | |
parent | f4373a1f831355e0a7eb7b33b373c14d5fc05926 (diff) | |
download | imv-d0b041f17c34fc36fc8121cfe23e2da2b79cf4fa.tar.gz |
Use realloc(3) for extending buffer
It may save some CPU cycles if there is enough space to grow the array without
copying memory chunks. Two side effects of the change: proper error checking
added and dangerous memcpy(3) call removed.
Diffstat (limited to 'src/util.c')
0 files changed, 0 insertions, 0 deletions