From 8e046b03e837796f300515e0c631facd2372b46d Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Mon, 17 Oct 2011 16:48:10 +0200 Subject: [PATCH] --- yaml --- r: 269300 b: refs/heads/master c: fe353178653b15add8626f5474842601be160281 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/tools/slub/slabinfo.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 9cfd9f646007..0b9136db4e6e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ab067e99d22ec78ff646de1283348729d1aa66d4 +refs/heads/master: fe353178653b15add8626f5474842601be160281 diff --git a/trunk/tools/slub/slabinfo.c b/trunk/tools/slub/slabinfo.c index 868cc93f7ac2..cc1a378f9c06 100644 --- a/trunk/tools/slub/slabinfo.c +++ b/trunk/tools/slub/slabinfo.c @@ -1145,7 +1145,7 @@ static void read_slab_dir(void) switch (de->d_type) { case DT_LNK: alias->name = strdup(de->d_name); - count = readlink(de->d_name, buffer, sizeof(buffer)); + count = readlink(de->d_name, buffer, sizeof(buffer)-1); if (count < 0) fatal("Cannot read symlink %s\n", de->d_name);