mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Fix crash in mailcap reader
This commit is contained in:
parent
a54c25ff78
commit
24c33dce6d
@ -152,7 +152,7 @@ void read_files() {
|
||||
}
|
||||
// Use just the first BUFLEN chars
|
||||
strncpy(buffer, line.c_str(), BUFLEN);
|
||||
buffer[BUFLEN]='\0';
|
||||
buffer[BUFLEN-1]='\0';
|
||||
}
|
||||
|
||||
// Parse line
|
||||
|
Loading…
Reference in New Issue
Block a user