make somewhat safer
This commit is contained in:
parent
ad172c3e1f
commit
806e8160f0
@ -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