X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.c;h=a3a06b79d0467673ca042bad806e02685b11e3d9;hb=c28f9557f19deb9621b179d3c6ccbdf0458bd304;hp=25fe5f59766d072672afae0fd948753dd4ffcad8;hpb=91f35c4c0e1494e9711f26bb86f843e176c81321;p=xboard.git diff --git a/backend.c b/backend.c index 25fe5f5..a3a06b7 100644 --- a/backend.c +++ b/backend.c @@ -13328,7 +13328,7 @@ if(appData.debugMode) fprintf(debugFP, "Append: in='%s' %d\n", text, addBraces); } else { commentList[index] = (char *) malloc(len + 6); // perhaps wastes 4... if(addBraces) - safeStrCpy(commentList[index], "{\n", sizeof(commentList[index])/sizeof(commentList[index][0])); + safeStrCpy(commentList[index], "{\n", 3); else commentList[index][0] = NULLCHAR; strcat(commentList[index], text); strcat(commentList[index], "\n");