fixed backwards memset argument order

svn: r16191
This commit is contained in:
Kevin Tew 2009-09-30 19:45:56 +00:00
parent 5c8de0ea41
commit bb148a3e1b

View File

@ -942,7 +942,7 @@ user_get_or_peek_bytes(Scheme_Input_Port *port,
} else {
char *vb;
vb = scheme_malloc_atomic(size + 1);
memset(vb, size + 1, 0); /* must initialize for security */
memset(vb, 0, size + 1); /* must initialize for security */
bstr = scheme_make_sized_byte_string(vb, size, 0);
}
a[0] = bstr;