X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=stat.c;h=8036de3a9d682d9bfe7506a09ee52cabbb9780ea;hb=63abcd1b2f6de6ce53d82962f5a2100c5a57e5d3;hp=336909174982ae29b3fff7f187026f615a2756ce;hpb=455818b4d559c0294788f7b12ec64055244cb55f;p=paraslash.git diff --git a/stat.c b/stat.c index 33690917..8036de3a 100644 --- a/stat.c +++ b/stat.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2009 Andre Noll + * Copyright (C) 2005-2013 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -77,7 +77,5 @@ int for_each_stat_item(char *item_buf, size_t num_bytes, assert(len >= 0 && buf <= item_buf + num_bytes); } assert(len >= 0); - if (len && len != num_bytes) - memmove(item_buf, item_buf + num_bytes - len, len); return len; }