Fix WinBoard compile errors
[xboard.git] / winboard / woptions.c
index d4f54d0..e6d6e80 100644 (file)
@@ -903,7 +903,7 @@ VariantShowRadio(HWND hDlg)
   while((j = radioButton[i++]) != -2) {\r
        if(j == -1) continue; // no menu button\r
        v = VariantName(i-1); p = strstr(first.variants, v);\r
-       EnableWindow(GetDlgItem(hDlg, j), appData.noChessProgram || p && (!*v || strlen(v) == strlen[p] || p[strlen[v]] == ','));\r
+       EnableWindow(GetDlgItem(hDlg, j), appData.noChessProgram || p && (!*v || strlen(v) == strlen(p) || p[strlen(v)] == ','));\r
   }\r
   *engineVariant = c;\r
   for(i=0; i<15; i++) { // initialize engine-defined variants\r