ensure CWD is NULL-terminated. CID1352820

This commit is contained in:
Boris Faure 2016-03-12 17:11:01 +01:00
parent 4d8c5dd200
commit 8d0e13eff9
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}