X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2F9p%2Ferror.c;h=0d7fa4e08812b85367e290ebf933ea50306ac2a6;hb=a2f44b27303a5353859d77a3e96a1d3f33f56ab7;hp=981fe8ecd78045b315c1709502590d50dd6fb213;hpb=4544ac5ae436e5ca8ac99f4296c50a5b880e349e;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;