X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Falloc_str.c;h=05e803c737ef1b373b7d731fe6ff620e7202ddb9;hb=d75e8af89c831ba37062d16a102871ef4f443457;hp=45ea49125d9eb85ed5d4f16276e5ba644a9bcdbe;hpb=f409090ae7a4ca4f7710c8306948177fdcb49613;p=libucw.git diff --git a/lib/alloc_str.c b/lib/alloc_str.c index 45ea4912..05e803c7 100644 --- a/lib/alloc_str.c +++ b/lib/alloc_str.c @@ -1,5 +1,5 @@ /* - * Sherlock Library -- String Allocation + * UCW Library -- String Allocation * * (c) 1997 Martin Mares * @@ -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);