projects
/
unres.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ctest -DUNRES_MPIRUN=1 for tryton
[unres.git]
/
source
/
wham
/
src-M
/
proc_proc.c
diff --git
a/source/wham/src-M/proc_proc.c
b/source/wham/src-M/proc_proc.c
index
9ef2dff
..
7a21274
100644
(file)
--- a/
source/wham/src-M/proc_proc.c
+++ b/
source/wham/src-M/proc_proc.c
@@
-1,4
+1,5
@@
#include <stdlib.h>
+#include <stdio.h>
#include <math.h>
#ifdef LINUX
@@
-51,8
+52,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;
}