sbase

suckless unix tools
git clone git://git.2f30.org/sbase.git
Log | Files | Refs | README | LICENSE

commit 19f39608b63343c2ab7b516d16366d5cd2bd1bc0
parent 29959e8dad8f1fd3b6535e9483c38677f8efe992
Author: FRIGN <dev@frign.de>
Date:   Sat Feb 20 21:50:21 +0100

Do a range check on the resulting octal

Diffstat:
libutil/unescape.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libutil/unescape.c b/libutil/unescape.c @@ -62,7 +62,7 @@ unescape(char *s) q += (s[m] - '0') * factor; factor *= 8; } - s[i] = q; + s[i] = (q > 255) 255 : q; } for (m = i + 1; m <= len - off; m++)