NEED HELP(solution for removing bug)

I am Naveen , i am using ncurses library of version 5.4, in that i am getting a bug on the screen.

The following are the details:

Actually i have selected a window and i am sending some data to print it on the screen,right from the starting up to end i am finding some junk characters on particular places of the screen i also did gdb and clarified that data is not corrupted but some junk letters appear on the screen all the time at the same
place.can you please help me in solving this problem ?