Use original *BSD source for strlcpy()

git-svn-id: http://forge.voodooprojects.org/svn/chameleon@2291 b5af796a-00a8-11df-919b-ffff7a100b7d
Implement snprintf(); implement missing zero-fill in strncpy()

git-svn-id: http://forge.voodooprojects.org/svn/chameleon@2292 b5af796a-00a8-11df-919b-ffff7a100b7d
Fix memory leak for new_layout in main()

git-svn-id: http://forge.voodooprojects.org/svn/chameleon@2293 b5af796a-00a8-11df-919b-ffff7a100b7d
conf_write_autoconf(): fix cppcheck errors

git-svn-id: http://forge.voodooprojects.org/svn/chameleon@2294 b5af796a-00a8-11df-919b-ffff7a100b7d
append_string(): fix cppcheck errors

git-svn-id: http://forge.voodooprojects.org/svn/chameleon@2295 b5af796a-00a8-11df-919b-ffff7a100b7d
sym_expand_string_value(): fix cppcheck errors; more to be done here

git-svn-id: http://forge.voodooprojects.org/svn/chameleon@2296 b5af796a-00a8-11df-919b-ffff7a100b7d
search_and_get_acpi_fd: fix pointer-to-temporary return problem; use snprintf instead of sprintf to prevent buffer overflows

git-svn-id: http://forge.voodooprojects.org/svn/chameleon@2297 b5af796a-00a8-11df-919b-ffff7a100b7d
AllocateMemoryRange: fix cppcheck detected memory leak

git-svn-id: http://forge.voodooprojects.org/svn/chameleon@2298 b5af796a-00a8-11df-919b-ffff7a100b7d
Correct cppcheck detected errors, make more robust against errors

git-svn-id: http://forge.voodooprojects.org/svn/chameleon@2299 b5af796a-00a8-11df-919b-ffff7a100b7d
setup_nhm: fix cppcheck error

git-svn-id: http://forge.voodooprojects.org/svn/chameleon@2300 b5af796a-00a8-11df-919b-ffff7a100b7d
setup_gma_devprop: fix memory leak

git-svn-id: http://forge.voodooprojects.org/svn/chameleon@2301 b5af796a-00a8-11df-919b-ffff7a100b7d
Fix badly formed comment inside #ifdef

git-svn-id: http://forge.voodooprojects.org/svn/chameleon@2302 b5af796a-00a8-11df-919b-ffff7a100b7d
Fix memory leak; use snprintf instead of sprintf to make more robust

git-svn-id: http://forge.voodooprojects.org/svn/chameleon@2303 b5af796a-00a8-11df-919b-ffff7a100b7d
get_pci_dev_path: get rid of tmp buffer, use snprintf, improved O(n) algorithm instead of O(n^2) (whoopee); dump_pci_dt: hack fix for printf format string vs. args mismatch

git-svn-id: http://forge.voodooprojects.org/svn/chameleon@2304 b5af796a-00a8-11df-919b-ffff7a100b7d
Fix cppcheck detected memory leak, make more robust against buffer overrun

git-svn-id: http://forge.voodooprojects.org/svn/chameleon@2305 b5af796a-00a8-11df-919b-ffff7a100b7d
Fix cppcheck detected error

git-svn-id: http://forge.voodooprojects.org/svn/chameleon@2306 b5af796a-00a8-11df-919b-ffff7a100b7d
Fix memory leak

git-svn-id: http://forge.voodooprojects.org/svn/chameleon@2307 b5af796a-00a8-11df-919b-ffff7a100b7d
Add closedir() for every opendir() call, make more robust against buffer overruns

git-svn-id: http://forge.voodooprojects.org/svn/chameleon@2308 b5af796a-00a8-11df-919b-ffff7a100b7d
Improve robustness against buffer overruns

git-svn-id: http://forge.voodooprojects.org/svn/chameleon@2309 b5af796a-00a8-11df-919b-ffff7a100b7d
Fix memory leak, defend against buffer overruns

git-svn-id: http://forge.voodooprojects.org/svn/chameleon@2310 b5af796a-00a8-11df-919b-ffff7a100b7d