summaryrefslogtreecommitdiff
path: root/legacy/edje/src/lib/edje_text.c
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2010-12-14 06:19:30 +0000
committerVincent Torri <vincent.torri@gmail.com>2010-12-14 06:19:30 +0000
commitc69cd7ec2799285415474b8eacf1dcf239f09dcd (patch)
tree6519f05406af50ee5f4859d78c569de0ec2c0c57 /legacy/edje/src/lib/edje_text.c
parentaad53ed90d47cec175227a7f74093a7928e82344 (diff)
use size_t when it does not hurt
SVN revision: 55548
Diffstat (limited to 'legacy/edje/src/lib/edje_text.c')
-rw-r--r--legacy/edje/src/lib/edje_text.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/legacy/edje/src/lib/edje_text.c b/legacy/edje/src/lib/edje_text.c
index 84cbf64..67a5c5c 100644
--- a/legacy/edje/src/lib/edje_text.c
+++ b/legacy/edje/src/lib/edje_text.c
@@ -266,7 +266,7 @@ static const char *
266_edje_text_font_get(const char *base, const char *new, char **free_later) 266_edje_text_font_get(const char *base, const char *new, char **free_later)
267{ 267{
268 const char *base_style, *new_style, *aux; 268 const char *base_style, *new_style, *aux;
269 int font_len, style_len; 269 size_t font_len, style_len;
270 270
271 if (base && (!new)) 271 if (base && (!new))
272 return base; 272 return base;
@@ -283,7 +283,7 @@ _edje_text_font_get(const char *base, const char *new, char **free_later)
283 283
284 font_len = strlen(new); 284 font_len = strlen(new);
285 aux = strchr(base_style, ','); 285 aux = strchr(base_style, ',');
286 style_len = (aux) ? (aux - base_style) : (int) strlen(base_style); 286 style_len = (aux) ? (aux - base_style) : strlen(base_style);
287 287
288 *free_later = malloc(font_len + style_len + 1); 288 *free_later = malloc(font_len + style_len + 1);
289 memcpy(*free_later, new, font_len); 289 memcpy(*free_later, new, font_len);
@@ -365,7 +365,7 @@ _edje_text_recalc_apply(Edje *ed, Edje_Real_Part *ep,
365 { 365 {
366 char *font2; 366 char *font2;
367 367
368 int len = strlen(font) + sizeof("edje/fonts/") + 1; 368 size_t len = strlen(font) + sizeof("edje/fonts/") + 1;
369 font2 = alloca(len); 369 font2 = alloca(len);
370 sprintf(font2, "edje/fonts/%s", font); 370 sprintf(font2, "edje/fonts/%s", font);
371 font = font2; 371 font = font2;