Commit graph

3 commits

Author SHA1 Message Date
Motoyuki Konno
8d4724eed2 Fix build problem on 5-current.
<machine/soundcard.h> is moved to <sys/soundcard.h> on both 4-stable
and 5-current.  See commitlog of src/include/Makefile rev 1.165.
2002-04-11 00:22:33 +00:00
Kenneth D. Merry
2f23784cc1 Add a couple of fixes for compiler warnings from PR 23755, which also
addresses the core dump problem I fixed in the last version of this patch.

PR:		ports/23755
Submitted by:	Kentaro Inagaki <inagaki@tg.rim.or.jp>
2001-02-07 20:35:55 +00:00
Kenneth D. Merry
664211684a Fix a core dump when doing 'tosha -i'. (Maintainer timeout after about two
months.)

The problem is in resolve_extension().  strncpy() will only null-terminate
the destination string if it has enough room, according to the given
length.

In this implementation, there will never be enough room to null-terminate
the string, from what I can tell.  So if the memory in 'tmpstr' contains
non-nulls, you'll get a core-dump in the subsequent strcat().
2001-02-07 20:19:53 +00:00