mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
21 lines
665 B
Diff
21 lines
665 B
Diff
--- a/utility.c
|
|
+++ b/utility.c
|
|
@@ -2144,7 +2144,7 @@ int ReadPGN(FILE * input, int option) {
|
|
char *skip;
|
|
|
|
strcpy(temp, input_buffer);
|
|
- skip = strstr(input_buffer, buffer) + strlen(buffer);
|
|
+ skip = strstr(temp, buffer) + strlen(buffer);
|
|
if (skip)
|
|
strcpy(input_buffer, skip);
|
|
}
|
|
@@ -2241,7 +2241,7 @@ int ReadPGN(FILE * input, int option) {
|
|
}
|
|
}
|
|
strcpy(temp, input_buffer);
|
|
- skip = strstr(input_buffer, buffer) + strlen(buffer);
|
|
+ skip = strstr(temp, buffer) + strlen(buffer);
|
|
strcpy(input_buffer, skip);
|
|
} else {
|
|
int skip;
|
|
|