Fix restrict error in BLI_str_format_byte_unit
authorCampbell Barton <ideasman42@gmail.com>
Sun, 27 May 2018 08:25:52 +0000 (10:25 +0200)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 27 May 2018 08:28:04 +0000 (10:28 +0200)
commit12a9e9ae336c7d8d30d9e3f05eae67f14e2f5bb9
treef1797c2c9fa50f9ec3189a5a7df547f8ac531ec1
parent7a0699db34aa20d96e317202fee7d1266ff3b274
Fix restrict error in BLI_str_format_byte_unit

Don't use sprintf to append a string to it's self.

Also correct BLI_str_rstrip_float_zero's return value.
source/blender/blenlib/intern/string.c