forked from enlightenment/terminology
ensure CWD is NULL-terminated. CID1352820
This commit is contained in:
parent
4d8c5dd200
commit
8d0e13eff9
|
@ -525,10 +525,12 @@ termio_cwd_get(const Evas_Object *obj, char *buf, size_t size)
|
|||
procpath, strerror(errno));
|
||||
return EINA_FALSE;
|
||||
}
|
||||
buf[siz] = 0;
|
||||
buf[siz] = '\0';
|
||||
|
||||
#endif
|
||||
|
||||
buf[size -1] = '\0';
|
||||
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue