Fix recusive loop on command length check
Fix previous commit
Merge pull request #342 from smfreegard/master

Fix recusive loop on command length check