diff options
-rw-r--r-- | asn1c/unber.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/asn1c/unber.c b/asn1c/unber.c index db00157f..73004363 100644 --- a/asn1c/unber.c +++ b/asn1c/unber.c @@ -217,7 +217,7 @@ static pd_code_e process_deeper(const char *fname, FILE *fp, asn1c_integer_t *of /* Get the next byte from the input stream */ ch = fgetc(fp); if(ch == -1) { - if(tblen || limit) { + if(tblen || limit > 0) { fprintf(stderr, "%s: Unexpected end of file (TL)" " at %" PRIdASN "\n", |