buffer overflow avoided but with constant