Update disrsi_.c

Introduced an earlier check on the count variable. The existing code checks this too late and so can result in a buffer overflow.