mirror of
https://github.com/moparisthebest/pacman
synced 2025-03-03 18:59:55 -05:00

Remove the need for an unconditional string duplication by using pointer arithmetic instead, and strndup() instead of an unspecified-length strdup(). This should reduce memory churn a fair amount as this is called pretty frequently during database loads. Signed-off-by: Dan McGee <dan@archlinux.org>