X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=lib%2Fxstrndup.c;h=92b79c17ec29f097360d781e877dbae3d862a36d;hb=82c3b58b54026d061a4d81ad95f3023d5d883ab2;hp=52304e659f9d23f2fccaa228692de184ddcdcb64;hpb=a286dd013ef8d46edf013efc0908822a59d8ac81;p=platform%2Fupstream%2Felfutils.git diff --git a/lib/xstrndup.c b/lib/xstrndup.c index 52304e6..92b79c1 100644 --- a/lib/xstrndup.c +++ b/lib/xstrndup.c @@ -1,5 +1,5 @@ /* Convenience function for string allocation. - Copyright (C) 2006 Red Hat, Inc. + Copyright (C) 2006, 2015 Red Hat, Inc. This file is part of elfutils. This file is free software; you can redistribute it and/or modify @@ -36,9 +36,7 @@ /* Return a newly allocated copy of STRING. */ char * -xstrndup (string, n) - const char *string; - size_t n; +xstrndup (const char *string, size_t n) { char *res; size_t len = strnlen (string, n);