[bufaux.c]
     Use '\0' for a nul byte rather than unadorned 0.  ok djm@
This commit is contained in:
Darren Tucker 2008-06-11 09:35:37 +10:00
parent 896ad5a4e4
commit 2a8b138ed8
2 changed files with 6 additions and 3 deletions

View File

@ -55,6 +55,9 @@
[auth-options.c match.c servconf.c addrmatch.c sshd.8]
support CIDR address matching in .ssh/authorized_keys from="..." stanzas
ok and extensive testing dtucker@
- dtucker@cvs.openbsd.org 2008/06/10 23:21:34
[bufaux.c]
Use '\0' for a nul byte rather than unadorned 0. ok djm@
- (dtucker) [openbsd-compat/fake-rfc2553.h] Add sin6_scope_id to sockaddr_in6
since the new CIDR code in addmatch.c references it.
- (dtucker) [Makefile.in configure.ac regress/addrmatch.sh] Skip IPv6
@ -4147,4 +4150,4 @@
OpenServer 6 and add osr5bigcrypt support so when someone migrates
passwords between UnixWare and OpenServer they will still work. OK dtucker@
$Id: ChangeLog,v 1.4963 2008/06/10 23:34:46 dtucker Exp $
$Id: ChangeLog,v 1.4964 2008/06/10 23:35:37 dtucker Exp $

View File

@ -1,4 +1,4 @@
/* $OpenBSD: bufaux.c,v 1.45 2008/05/08 06:59:01 markus Exp $ */
/* $OpenBSD: bufaux.c,v 1.46 2008/06/10 23:21:34 dtucker Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@ -180,7 +180,7 @@ buffer_get_string_ret(Buffer *buffer, u_int *length_ptr)
return (NULL);
}
/* Append a null character to make processing easier. */
value[len] = 0;
value[len] = '\0';
/* Optionally return the length of the string. */
if (length_ptr)
*length_ptr = len;