diff options
Diffstat (limited to 'buffer.c')
-rw-r--r-- | buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: buffer.c,v 1.34 2013/11/08 11:15:19 dtucker Exp $ */ | 1 | /* $OpenBSD: buffer.c,v 1.35 2014/02/02 03:44:31 djm 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 |
@@ -49,7 +49,7 @@ void | |||
49 | buffer_free(Buffer *buffer) | 49 | buffer_free(Buffer *buffer) |
50 | { | 50 | { |
51 | if (buffer->alloc > 0) { | 51 | if (buffer->alloc > 0) { |
52 | memset(buffer->buf, 0, buffer->alloc); | 52 | explicit_bzero(buffer->buf, buffer->alloc); |
53 | buffer->alloc = 0; | 53 | buffer->alloc = 0; |
54 | free(buffer->buf); | 54 | free(buffer->buf); |
55 | } | 55 | } |