No point incrementing the pointer 's', which is a) uninitialized b) not used in the loop, and c) assigned to right after the loop.