elementary: always finish elm_conform buffer with at least one '\0'.

SVN revision: 80313
This commit is contained in:
Cedric BAIL 2012-12-06 08:31:25 +00:00
parent 4d029f2ddc
commit 17321c8bc3
3 changed files with 3 additions and 0 deletions

View File

@ -771,3 +771,4 @@
2012-12-06 Cedric Bail
* Fix possible segv in elm_quicklaunch infrastructure.
* Fix elm_conform buffer to always finish with at least one '\0';

View File

@ -77,6 +77,7 @@ Fixes:
* Fix uninitialized data path in elm_flip, elm_gesture_layer, elm_interface_scrollable,
els_scroller.
* Fix possible segv in elm_quicklaunch infrastructure.
* Fix buffer to always have a final '\0' in elm_conform.
Removals:

View File

@ -64,6 +64,7 @@ _conformant_part_geometry_get_from_env(const char *part,
/* strtok would modify env var if not copied to a buffer */
strncpy(buf, env_val, sizeof(buf));
buf[PATH_MAX - 1] = '\0';
token = strtok(buf, delimiters);
if (!token) return EINA_FALSE;