diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/slub/slabinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/slub/slabinfo.c b/tools/slub/slabinfo.c index 868cc93f7ac..cc1a378f9c0 100644 --- a/tools/slub/slabinfo.c +++ b/tools/slub/slabinfo.c | |||
@@ -1145,7 +1145,7 @@ static void read_slab_dir(void) | |||
1145 | switch (de->d_type) { | 1145 | switch (de->d_type) { |
1146 | case DT_LNK: | 1146 | case DT_LNK: |
1147 | alias->name = strdup(de->d_name); | 1147 | alias->name = strdup(de->d_name); |
1148 | count = readlink(de->d_name, buffer, sizeof(buffer)); | 1148 | count = readlink(de->d_name, buffer, sizeof(buffer)-1); |
1149 | 1149 | ||
1150 | if (count < 0) | 1150 | if (count < 0) |
1151 | fatal("Cannot read symlink %s\n", de->d_name); | 1151 | fatal("Cannot read symlink %s\n", de->d_name); |