glDrawArrays 's second parameter is the number of indices. Thus the correct call here is:
glDrawArrays
glDrawArrays(GL_TRIANGLE_FAN, 0, 4);