]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
string cleanup:
authorKenneth D. Merry <ken@FreeBSD.org>
Tue, 14 May 2002 04:32:02 +0000 (04:32 +0000)
committerKenneth D. Merry <ken@FreeBSD.org>
Tue, 14 May 2002 04:32:02 +0000 (04:32 +0000)
commit946061049401f2843e5c10151961305a15b2ef1b
tree45a762e3756d93b2e57090397f20b5126eb0781c
parent4e3e26a2edc35b05135ba75148c3cc0f291454de
string cleanup:

 - fix a potential overrun made worse by rev 1.5 of camlib.h
 - change strncpy() and strcpy() calls to strlcpy()
 - use sizeof(string[]) instead of STRING_LEN to avoid future problems
 - get rid of an unused variable

Thanks to BDE for pointing out some of the problems.

MFC after: 2 weeks
lib/libcam/camlib.c