summaryrefslogtreecommitdiffstats
path: root/compat/msdun.c
diff options
context:
space:
mode:
Diffstat (limited to 'compat/msdun.c')
-rw-r--r--compat/msdun.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/compat/msdun.c b/compat/msdun.c
index fab4c586..1759ef66 100644
--- a/compat/msdun.c
+++ b/compat/msdun.c
@@ -56,7 +56,8 @@ static void sig_alarm(int sig)
static int w4_str(int fd, char *str)
{
char buf[40];
- int r, len = 0;
+ unsigned len = 0;
+ int r;
while (1) {
r = read(fd, buf + len, sizeof(buf) - len - 1);