X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2F9p%2Ferror.c;h=0d7fa4e08812b85367e290ebf933ea50306ac2a6;hb=refs%2Fheads%2Fvserver;hp=981fe8ecd78045b315c1709502590d50dd6fb213;hpb=16cf0ec7408f389279d413869e94c1a351392f97;p=linux-2.6.git diff --git a/fs/9p/error.c b/fs/9p/error.c index 981fe8ecd..0d7fa4e08 100644 --- a/fs/9p/error.c +++ b/fs/9p/error.c @@ -27,7 +27,6 @@ * */ -#include #include #include @@ -84,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;