aboutsummaryrefslogtreecommitdiff
path: root/src/res-msg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/res-msg.c')
-rw-r--r--src/res-msg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/res-msg.c b/src/res-msg.c
index d5498c1..9eafced 100644
--- a/src/res-msg.c
+++ b/src/res-msg.c
@@ -225,7 +225,7 @@ EXPORT char *resmsg_res_str(uint32_t res, char *buf, int len)
}
} /* for */
- if (l > 0)
+ if (len > 0)
snprintf(p, len, "%s(%s)", *s ? " ":"<no-resource> ", hex);
return buf;