mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-22 21:16:07 +03:00
Fix readname test
This commit is contained in:
parent
783399e901
commit
5f74a079a6
6
read.c
6
read.c
@ -47,8 +47,12 @@ readname_loop(char *packet, char **src, char *dst, size_t length, size_t loop)
|
||||
|
||||
c--;
|
||||
}
|
||||
|
||||
if (len < length - 1) {
|
||||
break; /* We used up all space */
|
||||
}
|
||||
|
||||
if (*s != 0 && len < length - 1)
|
||||
if (*s != 0)
|
||||
*d++ = '.';
|
||||
}
|
||||
(*src) = s+1;
|
||||
|
Loading…
Reference in New Issue
Block a user