projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added SOIF syntax.
[yaz-moved-to-github.git]
/
comstack
/
waislen.c
diff --git
a/comstack/waislen.c
b/comstack/waislen.c
index
ea8f0a5
..
aabe69c
100644
(file)
--- a/
comstack/waislen.c
+++ b/
comstack/waislen.c
@@
-4,7
+4,10
@@
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: waislen.c,v $
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: waislen.c,v $
- * Revision 1.2 1996-02-26 18:34:44 adam
+ * Revision 1.3 1996-02-29 14:23:13 adam
+ * Bug fix.
+ *
+ * Revision 1.2 1996/02/26 18:34:44 adam
* Bug fix.
*
* Revision 1.1 1996/02/20 13:02:58 quinn
* Bug fix.
*
* Revision 1.1 1996/02/20 13:02:58 quinn
@@
-21,10
+24,10
@@
int completeWAIS(unsigned char *buf, int len)
{
int i, lval = 0;
{
int i, lval = 0;
- if (*buf != '0')
- return 0;
if (len < 25)
return 0;
if (len < 25)
return 0;
+ if (*buf != '0')
+ return 0;
/* calculate length */
for (i = 0; i < 10; i++)
lval = lval * 10 + (buf[i] - '0');
/* calculate length */
for (i = 0; i < 10; i++)
lval = lval * 10 + (buf[i] - '0');