Don't use sizeof() in pointer arithmetic or as indices; use found variables