aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-nat.c
diff options
context:
space:
mode:
authorPierre Muller <muller@sourceware.org>2009-03-25 10:02:13 +0000
committerPierre Muller <muller@sourceware.org>2009-03-25 10:02:13 +0000
commit1a6d2f2ff64b0e66af70b192e4e228a0ef55e443 (patch)
tree0193e93b207ed0fd7c9bedd4a1f74374a6c32efb /gdb/linux-nat.c
parentdc1aa7347fdcd34cd2f87b1a67d587e49fcc8321 (diff)
downloadgdb-1a6d2f2ff64b0e66af70b192e4e228a0ef55e443.zip
gdb-1a6d2f2ff64b0e66af70b192e4e228a0ef55e443.tar.gz
gdb-1a6d2f2ff64b0e66af70b192e4e228a0ef55e443.tar.bz2
ARI fix: "strlen d_name" rule.
* linux-nat.c (linux_nat_xfer_osdata): Use NAMELEN macro.
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r--gdb/linux-nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index 3cfc2b2..be99ece 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -4163,7 +4163,7 @@ linux_nat_xfer_osdata (struct target_ops *ops, enum target_object object,
char procentry[sizeof ("/proc/4294967295")];
if (!isdigit (dp->d_name[0])
- || strlen (dp->d_name) > sizeof ("4294967295") - 1)
+ || NAMELEN (dp) > sizeof ("4294967295") - 1)
continue;
sprintf (procentry, "/proc/%s", dp->d_name);