rdopt.c: prevent overflow of int

Change-Id: I6e423db799cf7d4573e78c82f372b7e3323385ea
1 file changed