File: fix-array-bounds-error

package info (click to toggle)
nast 0.2.0-10
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,788 kB
  • sloc: ansic: 7,516; sh: 2,768; makefile: 64
file content (15 lines) | stat: -rw-r--r-- 442 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
correct array bounds for the pthread_t array by adding one space

Index: nast/ncurses/n_nast.h
===================================================================
--- nast.orig/ncurses/n_nast.h	2012-06-16 13:00:31.000000000 -0700
+++ nast/ncurses/n_nast.h	2012-06-16 20:16:06.000000000 -0700
@@ -113,7 +113,7 @@
 pcap_dumper_t *dumper;
 
 /* thread for database connections */
-pthread_t thID[6];
+pthread_t thID[7];
 
 struct thread_conn
 {