X-Git-Url: http://git.madism.org/?a=blobdiff_plain;ds=sidebyside;f=strdup.c;h=9920a4acb728326a1ec6b8d32b27a4144a32785a;hb=103addea87100ee814eaad2a8cf7d944936ab582;hp=79c26c5df5f2eea5f2dafb9541692fe1f64082e5;hpb=841934011451205d8295ac955486f06c317fdf15;p=apps%2Fmadmutt.git diff --git a/strdup.c b/strdup.c index 79c26c5..9920a4a 100644 --- a/strdup.c +++ b/strdup.c @@ -19,9 +19,9 @@ char *strdup (const char *s) if (s == NULL) return NULL; - if ((d = malloc (mutt_strlen (s) + 1)) == NULL) /* __MEM_CHECKED__ */ + if ((d = malloc (str_len (s) + 1)) == NULL) /* __MEM_CHECKED__ */ return NULL; - memcpy (d, s, mutt_strlen (s) + 1); + memcpy (d, s, str_len (s) + 1); return d; }