sizeof(input)
..here..only returns the size of the pointer, which is always same.