diff options
author | Xavier Chantry <shiningxc@gmail.com> | 2009-09-07 01:15:39 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2009-09-07 15:16:50 -0500 |
commit | 43e16b373be50ca142e2b39055906194049c3686 (patch) | |
tree | 156519aa952d8b8f04bb89dea2335ef5279be7e7 /.gitignore | |
parent | cb1d4195bf7436240dbcc865113f3be19354aa34 (diff) | |
download | pacman-43e16b373be50ca142e2b39055906194049c3686.tar.xz |
rewrite strreplace
* just do one malloc call
* p = realloc(p, new_size) was not good
(see http://www.iso-9899.info/wiki/Why_not_realloc)
* use more efficient strncpy instead of strncat
Signed-off-by: Xavier Chantry <shiningxc@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions