Fix off-by-one in 'ad' command

This commit is contained in:
pancake 2014-11-06 16:58:30 +01:00
parent e0ee4edb10
commit fb62b2558d

View File

@ -1613,7 +1613,7 @@ count = R_MIN (count, len);
i += word;
break;
case R_ANAL_DATA_TYPE_STRING:
buf[len] = 0;
buf[len-1] = 0;
i += strlen ((const char*)buf+i)+1;
break;
default: