forked from enlightenment/efl
eina: eina_strlcat now work with NULL src.
This commit is contained in:
parent
23cbcb5fa4
commit
fde00d91a8
|
@ -1,3 +1,8 @@
|
||||||
|
2013-02-28 Cedric Bail
|
||||||
|
|
||||||
|
* eina_strlcat work with a NULL src.
|
||||||
|
|
||||||
|
|
||||||
2013-02-26 Carsten Haitzler (The Rasterman)
|
2013-02-26 Carsten Haitzler (The Rasterman)
|
||||||
|
|
||||||
* Fix evas GL common engine to have a shader to do oversampling on
|
* Fix evas GL common engine to have a shader to do oversampling on
|
||||||
|
|
1
NEWS
1
NEWS
|
@ -114,6 +114,7 @@ Improvements:
|
||||||
* edje: reduce memory consumption of Edje program handler.
|
* edje: reduce memory consumption of Edje program handler.
|
||||||
* eina, evas: improved support for 64bits system.
|
* eina, evas: improved support for 64bits system.
|
||||||
* Evas GL engine downscale quality in smooth mode much improved with multisampling up to effectively 16x16 via shaders.
|
* Evas GL engine downscale quality in smooth mode much improved with multisampling up to effectively 16x16 via shaders.
|
||||||
|
* eina: eina_strlcat now work with a NULL source.
|
||||||
|
|
||||||
Fixes:
|
Fixes:
|
||||||
* Fix a memory leak in ecore_con_dns when using ecore_con_server_connect
|
* Fix a memory leak in ecore_con_dns when using ecore_con_server_connect
|
||||||
|
|
|
@ -347,8 +347,10 @@ eina_strlcat(char *dst, const char *src, size_t siz)
|
||||||
n = siz - dlen;
|
n = siz - dlen;
|
||||||
|
|
||||||
if (n == 0)
|
if (n == 0)
|
||||||
return(dlen + strlen(s));
|
return(dlen + (s ? strlen(s) : 0));
|
||||||
|
|
||||||
|
if (s != NULL)
|
||||||
|
{
|
||||||
while (*s != '\0') {
|
while (*s != '\0') {
|
||||||
if (n != 1)
|
if (n != 1)
|
||||||
{
|
{
|
||||||
|
@ -358,6 +360,7 @@ eina_strlcat(char *dst, const char *src, size_t siz)
|
||||||
|
|
||||||
s++;
|
s++;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
*d = '\0';
|
*d = '\0';
|
||||||
|
|
||||||
return(dlen + (s - src)); /* count does not include NUL */
|
return(dlen + (s - src)); /* count does not include NUL */
|
||||||
|
|
Loading…
Reference in New Issue