commit | b8bda67f304b7c70dee891b7ca660036793c2a4b | [log] [download] |
---|---|---|
author | nicm <nicm> | Fri Apr 11 19:35:54 2014 +0000 |
committer | nicm <nicm> | Fri Apr 11 19:35:54 2014 +0000 |
tree | dded327c5a855dddbbdddf68220868207dca3b10 | |
parent | 73c5a487c1b0f10bbc36479f425fb9cea512be7b [diff] |
Don't blindly increase offsets by the return value of snprintf, if there wasn't enough space this will go off the end. Instead clamp to the available space. Fixes crash reported by Julien Rebetez.