summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_info.c
diff options
context:
space:
mode:
authorJohn Birrell <jb@FreeBSD.org>1998-06-09 23:21:05 +0000
committerJohn Birrell <jb@FreeBSD.org>1998-06-09 23:21:05 +0000
commitddc8afd422568750de7698d8a92b79b27599dd2f (patch)
tree7b6d63e77297f7bad0d21a6bb68fa893b9a54574 /lib/libpthread/thread/thr_info.c
parenta67502218841058625ebd524b04693bee2622955 (diff)
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_info.c')
-rw-r--r--lib/libpthread/thread/thr_info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_info.c b/lib/libpthread/thread/thr_info.c
index c2c34267e212..16562acd624c 100644
--- a/lib/libpthread/thread/thr_info.c
+++ b/lib/libpthread/thread/thr_info.c
@@ -154,7 +154,7 @@ _thread_dump_info(void)
}
/* Output a header for file descriptors: */
- strcpy(s, "\n\n=============\nFILE DESCRIPTOR TABLE\n\n");
+ snprintf(s, sizeof(s), "\n\n=============\nFILE DESCRIPTOR TABLE (table size %d)\n\n",_thread_dtablesize);
_thread_sys_write(fd, s, strlen(s));
/* Enter a loop to report file descriptor lock usage: */