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