mirror of
https://github.com/radareorg/radare2.git
synced 2025-03-05 21:13:27 +00:00
Fix CID #1134677
This commit is contained in:
parent
f1e2ffa2ca
commit
633043ae8f
@ -102,8 +102,9 @@ r_regex_error(int errcode, const RRegex *preg, char *errbuf, size_t errbuf_size)
|
||||
}
|
||||
|
||||
len = strlen(s) + 1;
|
||||
if (errbuf_size > 0)
|
||||
if (errbuf_size > 0) {
|
||||
STRLCPY(errbuf, s, errbuf_size);
|
||||
}
|
||||
|
||||
return(len);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user