aboutsummaryrefslogtreecommitdiffstats
path: root/epan/diam_dict.l
diff options
context:
space:
mode:
Diffstat (limited to 'epan/diam_dict.l')
-rw-r--r--epan/diam_dict.l10
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/diam_dict.l b/epan/diam_dict.l
index 7874112428..b9006fb890 100644
--- a/epan/diam_dict.l
+++ b/epan/diam_dict.l
@@ -567,14 +567,14 @@ static void append_to_buffer(char* txt, int len) {
}
static size_t file_input(char* buf, size_t max) {
- size_t read;
+ size_t read_cnt;
- read = fread(buf,1,max,yyin);
+ read_cnt = fread(buf,1,max,yyin);
- if ( read == max ) {
+ if ( read_cnt == max ) {
return max;
- } else if (read > 0) {
- return read;
+ } else if (read_cnt > 0) {
+ return read_cnt;
} else {
return YY_NULL;
}