alpt-d: Fix infinite loop

This program causes an infinite loop

GOAL:  Fix the infinite loop
alpt-d: Fix infinite loop

This program causes an infinite loop

GOAL:  Fix the infinite loop
Merge pull request #1 from cmaiolino/master

[PATCH] alpt-d: Fix infinite loop (cmaiolino)