[316] in Pthreads mailing list archive
unchanged and changed bugs in 60_beta5
daemon@ATHENA.MIT.EDU (Jin Guojun[ITG])
Mon May 13 14:41:44 1996
Date: Mon, 13 May 1996 11:12:21 -0700
From: "Jin Guojun[ITG]" <jin@george.lbl.gov>
To: pthreads@MIT.EDU
Cc: proven@MIT.EDU
A few things I found in release 1_60_beta5 may consider as problems:
% diff net/gethostbyname.c ../pthreads/net
36c36
< static char *rcsid = "gethostbyname.c,v 1.8 1995/03/27 10:35:36 ghudson Exp";
---
> static char *rcsid = "$Id: gethostbyname.c,v 1.8 1995/03/27 10:35:36 ghudson Exp $";
110,112c110,112
< strncpy(result->hostbuf, hostname, BUFSIZ);
< result->hostbuf[BUFSIZ - 1] = 0;
< result->host.h_name = result->hostbuf;
---
> strncpy(result->name, hostname, BUFSIZ - 1);
> result->name[BUFSIZ - 1] = 0;
> result->host.h_name = result->name;
--- < was changed in 1_60_beta4_1, > but unchanged in 1_60_beta5 ---
--- This causes core dump in 1_60_beta4 ---------
diff -wi pthreads/cond.c ../pthreads/pthreads/cond.c
150c148
< pthread_cond_debug_ptrs[pthread_cond_debug_count] = NULL;
---
> pthread_cond_debug_ptrs[pthread_cond_debug_count] == NULL;
-- < was least correct syntax in 1_60_beta4_1, > but meaningless in beta5 --
----------- I have no idea for this changes, may be by mistake ? ----------
-Jin Guojun