make somewhat safer
This commit is contained in:
parent
a40768b6f9
commit
615b67952f
@ -64,7 +64,7 @@ static getline ()
|
|||||||
|
|
||||||
static skip_period ()
|
static skip_period ()
|
||||||
{
|
{
|
||||||
while (*_buf != ':')
|
while (*_buf && *_buf != ':')
|
||||||
_buf++;
|
_buf++;
|
||||||
*_buf++ = '\0';
|
*_buf++ = '\0';
|
||||||
}
|
}
|
||||||
|
|||||||
@ -65,7 +65,7 @@ static getline ()
|
|||||||
|
|
||||||
static skip_period ()
|
static skip_period ()
|
||||||
{
|
{
|
||||||
while (*_buf != ':')
|
while (*_buf && *_buf != ':')
|
||||||
_buf++;
|
_buf++;
|
||||||
|
|
||||||
*_buf++ = '\0';
|
*_buf++ = '\0';
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user