X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lnet%2Futils%2Frouterstat.c;h=f31f8114886087fc58878d3760c9c152f7cbd218;hb=1ede0cfcbaf021da493fcd4352f9d092e176a292;hp=61d152c96fa4b5ea856f7929874c258324f0dfce;hpb=3684de257a7e8932936a27d0fdb3ecb39653e624;p=fs%2Flustre-release.git diff --git a/lnet/utils/routerstat.c b/lnet/utils/routerstat.c index 61d152c..f31f811 100644 --- a/lnet/utils/routerstat.c +++ b/lnet/utils/routerstat.c @@ -1,6 +1,4 @@ -/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*- - * vim:expandtab:shiftwidth=8:tabstop=8: - * +/* * GPL HEADER START * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -28,6 +26,8 @@ /* * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. + * + * Copyright (c) 2011, Intel Corporation. */ /* * This file is part of Lustre, http://www.lustre.org/ @@ -106,7 +106,7 @@ do_stat (int fd) lseek (fd, 0, SEEK_SET); now = timenow(); - n = read (fd, buffer, sizeof (buffer)); + n = read(fd, buffer, sizeof(buffer) - 1); if (n < 0) { fprintf (stderr, "Can't read statfile\n");