1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00
Zdenek Kabelac 96077265c4 Replace dm_snprintf with strncpy
My previous patch fixed incorrect error check for dm_snprintf.
However in this particular case - dm_snprintf has been used differently -
just like strncpy + setting last char with '\0' - so the code had to return
error - because the buffer was to short for whole string.

Patch replaces it with real strncpy.
Also test for alloca() failure is removed - as the program behaviour
is rather undefined in this case - it never returns NULL.
2011-04-12 14:13:17 +00:00
..
2011-03-10 14:51:35 +00:00
2011-04-08 14:14:57 +00:00
2011-02-18 14:47:28 +00:00
2011-03-30 12:30:39 +00:00
2011-04-08 14:21:34 +00:00
2011-04-12 14:13:17 +00:00
2011-02-18 14:47:28 +00:00