X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=engineoutput.c;h=cf17e41f0b1ee80e80b0430ba558a3be30d966d6;hb=0ea1b434ac6becf79c75d85ba27de5b89666a7c3;hp=2759aff80b69fd90bfc4c27efdfe0b19018bacaf;hpb=01768d1677ff891d503bbfa250b09d373bfa7422;p=xboard.git diff --git a/engineoutput.c b/engineoutput.c index 2759aff..cf17e41 100644 --- a/engineoutput.c +++ b/engineoutput.c @@ -492,7 +492,7 @@ void OutputKibitz(int window, char *text) } opponentKibitzes = TRUE; // this causes split window DisplayMode in ICS modes. VerifyDisplayMode(); - strcpy(text+strlen(text)-1, "\r\n"); // to not lose line breaks on copying + strncpy(text+strlen(text)-1, "\r\n",sizeof(text+strlen(text)-1)); // to not lose line breaks on copying if(gameMode == IcsObserving) { DoSetWindowText(0, nLabel, gameInfo.white); SetIcon( 0, nColorIcon, nColorWhite);