radare/radare2 — pull request #11 by rchiossi (2012-08-30 16:56:17+00:00)
Title: rasm2 fix for -D

The fix in commit d843506ae1eacefc0f5631c48824a58075c633ae was checking for ret < 0, but as ret is initialized with 0 rasm -D would always finish after a single instruction.
This commit reverts to the previous commit and adds a check to see if the end of the buffer was reached.