X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Falloc_str.c;h=05e803c737ef1b373b7d731fe6ff620e7202ddb9;hb=55c249f666faddb7d4e999d8a8e3ab66bccfae96;hp=ab7b467213b4c0303abfca4046e846648e94078b;hpb=cad27e97e6370f96903d42aaf345c099af0a03bd;p=libucw.git diff --git a/lib/alloc_str.c b/lib/alloc_str.c index ab7b4672..05e803c7 100644 --- a/lib/alloc_str.c +++ b/lib/alloc_str.c @@ -11,8 +11,8 @@ #include -byte * -xstrdup(byte *s) +char * +xstrdup(const char *s) { uns l = strlen(s) + 1; return memcpy(xmalloc(l), s, l);