X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;f=source%2Funres%2Fsrc_MD%2Fcompinfo.c;h=e28f6864eb2d60a4cbde6be922e7c79d655400a6;hb=1aedf0f33655833a4e64a16c939340de42398d13;hp=c7eecbe50d119564bc5e1f1c1a460dfb51e153e7;hpb=8e848ca63c0f76bb0040ca461701364d5acae0d3;p=unres.git diff --git a/source/unres/src_MD/compinfo.c b/source/unres/src_MD/compinfo.c index c7eecbe..e28f686 100644 --- a/source/unres/src_MD/compinfo.c +++ b/source/unres/src_MD/compinfo.c @@ -28,7 +28,7 @@ uname(&Name); time(&Tp); system("whoami > tmptmp"); in1=fopen("tmptmp","r"); -if (fscanf(in1,"%s",buf1) != NULL) +if (fscanf(in1,"%s",buf1) != EOF) { p1=ctime(&Tp); p1[strlen(p1)-1]='\0';