X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=fs%2F9p%2Ferror.c;h=0d7fa4e08812b85367e290ebf933ea50306ac2a6;hb=771b8dad9653d2659e0ffcc237184cb16c317788;hp=e4b6f8f38b6fbcbe3fd59fcdce526d1e5a8eeabe;hpb=9fdb62af92c741addbea15545f214a6e89460865;p=powerpc.git diff --git a/fs/9p/error.c b/fs/9p/error.c index e4b6f8f38b..0d7fa4e088 100644 --- a/fs/9p/error.c +++ b/fs/9p/error.c @@ -11,9 +11,8 @@ * Copyright (C) 2002 by Ron Minnich * * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. + * it under the terms of the GNU General Public License version 2 + * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -28,7 +27,6 @@ * */ -#include #include #include @@ -85,6 +83,7 @@ int v9fs_errstr2errno(char *errstr, int len) if (errno == 0) { /* TODO: if error isn't found, add it dynamically */ + errstr[len] = 0; printk(KERN_ERR "%s: errstr :%s: not found\n", __FUNCTION__, errstr); errno = 1;