git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@69301
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
2012-03-10 Cedric Bail
* Fix double free at end of execution of Ecore_Thread with feedback.
+
+2012-03-13 Leif Middelschulte (T_UNIX)
+
+ * Fix ecore_x_randr_modes_info_get to not cut off the trailing '\0'
+ anymore
* ecore_thread:
- ecore_thread_feedback_run now handle try_no_queue the way it logically should.
- prevent double free that could cause crash when an Ecore_Thread stop.
+ * ecore_x:
+ - ecore_x_randr_modes_info_get does not cut off the trailing '\0' anymore.
Improvements:
* ecore:
ret[i]->vSyncStart = res->modes[i].vSyncStart;
ret[i]->vSyncEnd = res->modes[i].vSyncEnd;
ret[i]->vTotal = res->modes[i].vTotal;
- if ((ret[i]->name = (malloc(res->modes[i].nameLength))))
+ if ((ret[i]->name = (malloc(res->modes[i].nameLength + 1))))
strncpy(ret[i]->name, res->modes[i].name,
- res->modes[i].nameLength);
+ (res->modes[i].nameLength + 1));
else
ret[i]->name = NULL;