]> Pileus Git - ~andy/linux/blobdiff - kernel/trace/trace.c
Merge branch 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6
[~andy/linux] / kernel / trace / trace.c
index 411af37f4be4755b2bb1670d7cef18d16fc39c94..45068269ebb1746673f23c20b146ca9104a0b325 100644 (file)
@@ -415,7 +415,7 @@ int trace_get_user(struct trace_parser *parser, const char __user *ubuf,
 
        /* read the non-space input */
        while (cnt && !isspace(ch)) {
-               if (parser->idx < parser->size)
+               if (parser->idx < parser->size - 1)
                        parser->buffer[parser->idx++] = ch;
                else {
                        ret = -EINVAL;