projects
/
unres.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
sscanf EOF fix in source/wham/src-M/proc_proc.c
[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
..
9fb3ccd
100644
(file)
--- a/
source/wham/src-M/proc_proc.c
+++ b/
source/wham/src-M/proc_proc.c
@@
-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;
}