corplugin.c (pymol-open-source-2.2.0) | : | corplugin.c (pymol-open-source-2.3.0) | ||
---|---|---|---|---|
skipping to change at line 129 | skipping to change at line 129 | |||
} | } | |||
/* Read and discard the header */ | /* Read and discard the header */ | |||
do { | do { | |||
if (fgets(inbuf, COR_RECORD_LENGTH+1, f) == NULL) { | if (fgets(inbuf, COR_RECORD_LENGTH+1, f) == NULL) { | |||
fclose(f); | fclose(f); | |||
printf("corplugin) Error opening file: cannot read line.\n"); | printf("corplugin) Error opening file: cannot read line.\n"); | |||
return NULL; | return NULL; | |||
} | } | |||
if (sscanf(inbuf, "%10c", header) != 1) { | if (sscanf(inbuf, "%10s", header) != 1) { | |||
fclose(f); | fclose(f); | |||
printf("corplugin) Error opening file: improperly formatted line.\n"); | printf("corplugin) Error opening file: improperly formatted line.\n"); | |||
return NULL; | return NULL; | |||
} | } | |||
} while (header[0]=='*'); | } while (header[0]=='*'); | |||
/* check for EXT keyword */ | /* check for EXT keyword */ | |||
*iofoext = 0 ; | *iofoext = 0 ; | |||
if (strstr(inbuf,"EXT") != NULL) | if (strstr(inbuf,"EXT") != NULL) | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |