Fix a off-by-one error in the VBE string copy function.
authorMichał Januszewski <spock@gentoo.org>
Sat, 4 Oct 2008 00:02:08 +0000 (4 02:02 +0200)
committerMichał Januszewski <spock@gentoo.org>
Sat, 4 Oct 2008 00:02:08 +0000 (4 02:02 +0200)
v86_common.c

index e69c636..758bf69 100644 (file)
@@ -12,7 +12,7 @@
        } else if (t > 0xa0000 && fsize > 0) {          \
                strncpy((char*)buf, vptr(t), fsize);    \
                ib->name = tsk->buf_len - fsize;                \
-               l = strlen((char*)buf);                                 \
+               l = strlen((char*)buf) + 1;                             \
                fsize -= l;                                                             \
                buf += l;                                                               \
                if (fsize < 0)                                                  \