Set subscribe handler data as global

From reference to this, what I understand is that the data is copied as string and put into global char, and each element from data is assigned into global char as an array.