summaryrefslogtreecommitdiff
path: root/src/bin/eina
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2019-05-03 13:09:07 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-05-03 13:13:57 +0100
commit7db4714db6ed4e540e1048692f29f3ea1f2b88ed (patch)
tree1b5099c40d8afa89cf6586d200599883535180e6 /src/bin/eina
parent7047a056abb6e44811f12bab37546bdfb1ad98ab (diff)
replace strndup with eina_strndup, remove strndup definition in evil and elm_test_dnd
Test Plan: compilation Reviewers: cedric, zmike, raster Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8814
Diffstat (limited to 'src/bin/eina')
-rw-r--r--src/bin/eina/eina_btlog/eina_btlog.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/eina/eina_btlog/eina_btlog.c b/src/bin/eina/eina_btlog/eina_btlog.c
index 41464611db..913470a1a8 100644
--- a/src/bin/eina/eina_btlog/eina_btlog.c
+++ b/src/bin/eina/eina_btlog/eina_btlog.c
@@ -194,7 +194,7 @@ _atos(const char *prog, const char *bin_dir, const char *bin_name, unsigned long
194 if ((spaces == func_space_count) && (func_done == EINA_FALSE)) 194 if ((spaces == func_space_count) && (func_done == EINA_FALSE))
195 { 195 {
196 *s = '\0'; 196 *s = '\0';
197 *func_name = strndup(buf, (int)(s - &(buf[0]))); 197 *func_name = eina_strndup(buf, (int)(s - &(buf[0])));
198 func_done = EINA_TRUE; 198 func_done = EINA_TRUE;
199 } 199 }
200 else if (*s == '(') 200 else if (*s == '(')
@@ -208,7 +208,7 @@ _atos(const char *prog, const char *bin_dir, const char *bin_name, unsigned long
208 else if ((*s == ':') && (func_done == EINA_TRUE)) 208 else if ((*s == ':') && (func_done == EINA_TRUE))
209 { 209 {
210 *s = '\0'; 210 *s = '\0';
211 *file_name = strndup(f1, (int)(s - f1)); 211 *file_name = eina_strndup(f1, (int)(s - f1));
212 s++; 212 s++;
213 len = strlen(s); 213 len = strlen(s);
214 s[len - 1] = '\0'; /* Remove the closing parenthesis */ 214 s[len - 1] = '\0'; /* Remove the closing parenthesis */
@@ -266,7 +266,7 @@ bt_input_translate(const char *line, char **comment)
266 (int)(fileend - filestart), filestart, 266 (int)(fileend - filestart), filestart,
267 (int)(addrend - addrstart), addrstart, 267 (int)(addrend - addrstart), addrstart,
268 (int)(baseend - basestart), basestart); 268 (int)(baseend - basestart), basestart);
269 *comment = strndup(line, addrstart - line); 269 *comment = eina_strndup(line, addrstart - line);
270 return local; 270 return local;
271} 271}
272 272