forked from enlightenment/efl
elementary: always finish elm_conform buffer with at least one '\0'.
SVN revision: 80313
This commit is contained in:
parent
4d029f2ddc
commit
17321c8bc3
|
@ -771,3 +771,4 @@
|
||||||
2012-12-06 Cedric Bail
|
2012-12-06 Cedric Bail
|
||||||
|
|
||||||
* Fix possible segv in elm_quicklaunch infrastructure.
|
* Fix possible segv in elm_quicklaunch infrastructure.
|
||||||
|
* Fix elm_conform buffer to always finish with at least one '\0';
|
||||||
|
|
|
@ -77,6 +77,7 @@ Fixes:
|
||||||
* Fix uninitialized data path in elm_flip, elm_gesture_layer, elm_interface_scrollable,
|
* Fix uninitialized data path in elm_flip, elm_gesture_layer, elm_interface_scrollable,
|
||||||
els_scroller.
|
els_scroller.
|
||||||
* Fix possible segv in elm_quicklaunch infrastructure.
|
* Fix possible segv in elm_quicklaunch infrastructure.
|
||||||
|
* Fix buffer to always have a final '\0' in elm_conform.
|
||||||
|
|
||||||
Removals:
|
Removals:
|
||||||
|
|
||||||
|
|
|
@ -64,6 +64,7 @@ _conformant_part_geometry_get_from_env(const char *part,
|
||||||
|
|
||||||
/* strtok would modify env var if not copied to a buffer */
|
/* strtok would modify env var if not copied to a buffer */
|
||||||
strncpy(buf, env_val, sizeof(buf));
|
strncpy(buf, env_val, sizeof(buf));
|
||||||
|
buf[PATH_MAX - 1] = '\0';
|
||||||
|
|
||||||
token = strtok(buf, delimiters);
|
token = strtok(buf, delimiters);
|
||||||
if (!token) return EINA_FALSE;
|
if (!token) return EINA_FALSE;
|
||||||
|
|
Loading…
Reference in New Issue