fix w32 build

http://sourceforge.net/p/mingw/bugs/1912/   <-- lol
This commit is contained in:
condret 2014-06-02 11:18:47 +02:00 committed by pancake
parent 390345ea95
commit 517323db0b

View File

@ -189,7 +189,7 @@ R_API int r_core_yank_string(RCore *core, ut64 addr, int maxlen) {
buf[core->blocksize] = 0;
r_core_read_at (core, addr, buf, core->blocksize);
if (maxlen == 0) {
maxlen = strnlen ((const char*)buf, core->blocksize);
maxlen = r_str_nlen ((const char*)buf, core->blocksize); //Don't use strnlen, see: http://sourceforge.net/p/mingw/bugs/1912/
} else if (maxlen > core->blocksize) {
maxlen = core->blocksize;
}