diff options
author | ael-code <tommy.ael@gmail.com> | 2018-06-22 15:41:44 +0200 |
---|---|---|
committer | ael-code <tommy.ael@gmail.com> | 2018-06-22 15:41:44 +0200 |
commit | ad085c13325d17a242a813879b8574ba3dd43cc7 (patch) | |
tree | 60dd5b87f1e9bf29b0816210ee00e18e29470405 /sway/commands/font.c | |
parent | 202ee511503bc7c6a18dec440ac3cdb8d5e8f859 (diff) |
bugfix: avoid access after free
if src is NULL due to a previous error we cannot use it in the command
result string.
Moreover if `src` points to `p.we_wordv[0]` we cannot use it after
`wordfree(&p)` in the command result string.
Bonus feature: If there was an error accessing the file, the string
rapresentation of the error is now included in the command result
string.
Diffstat (limited to 'sway/commands/font.c')
0 files changed, 0 insertions, 0 deletions