1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-18 10:04:20 +03:00
Zdenek Kabelac de61ffd1b5 Limit number of mem allocs and copies
If we have good enough glibc to return number of needed chars, do not
loop try to reach good size, but use this size directly for allocation,
saving also last strdup.

Since now we start with 16 bytes - skip buffer realloc for shorter string.
2012-02-23 18:05:12 +00:00
..
2012-02-10 13:52:05 +00:00
2012-01-23 17:47:36 +00:00
2012-02-08 12:59:45 +00:00
2012-02-10 14:00:07 +00:00