sscanf EOF fix in source/wham/src-M/proc_proc.c
[unres.git] / source / wham / src-M / proc_proc.c
index 9ef2dff..9fb3ccd 100644 (file)
@@ -51,8 +51,8 @@ void _stdcall PROC_CONV(char *buf, int *i, int n)
 {
 int j;
 
-sscanf(buf,"%d",&j);
-*i=j;
+if (sscanf(buf,"%d",&j) != EOF)
+       *i=j;
 return;
 }