Skip to content

Commit

Permalink
Fixed signed char right shift in r_str_escape_ (radareorg#7497)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazarmy authored and radare committed May 15, 2017
1 parent 72433d1 commit 8bb1b96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libr/util/str.c
Original file line number Diff line number Diff line change
Expand Up @@ -1261,7 +1261,7 @@ static char *r_str_escape_(const char *buf, const int dot_nl, const bool ign_esc
if (!IS_PRINTABLE (*p)) {
*q++ = '\\';
*q++ = 'x';
*q++ = "0123456789abcdef"[*p >> 4];
*q++ = "0123456789abcdef"[*p >> 4 & 0xf];
*q++ = "0123456789abcdef"[*p & 0xf];
} else {
*q++ = *p;
Expand Down

0 comments on commit 8bb1b96

Please sign in to comment.