diff options
Diffstat (limited to 'bufaux.c')
-rw-r--r-- | bufaux.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bufaux.c,v 1.45 2008/05/08 06:59:01 markus Exp $ */ | 1 | /* $OpenBSD: bufaux.c,v 1.46 2008/06/10 23:21:34 dtucker Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * 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) | |||
180 | return (NULL); | 180 | return (NULL); |
181 | } | 181 | } |
182 | /* Append a null character to make processing easier. */ | 182 | /* Append a null character to make processing easier. */ |
183 | value[len] = 0; | 183 | value[len] = '\0'; |
184 | /* Optionally return the length of the string. */ | 184 | /* Optionally return the length of the string. */ |
185 | if (length_ptr) | 185 | if (length_ptr) |
186 | *length_ptr = len; | 186 | *length_ptr = len; |