typo/bug found by Christian Glahn Daniel

* valid.c: typo/bug found by Christian Glahn
Daniel
3 files changed