mirror of
https://github.com/OpenVPN/openvpn.git
synced 2024-11-24 02:03:56 +08:00
Fixed some gcc 4 warnings in misc.c.
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@843 e7ae566f-a301-0410-adde-c780ea21d3b5
This commit is contained in:
parent
bed73623cd
commit
e1447acc97
4
misc.c
4
misc.c
@ -1378,14 +1378,14 @@ make_inline_array (const char *str, struct gc_arena *gc)
|
||||
char **ret = NULL;
|
||||
int i = 0;
|
||||
|
||||
buf_set_read (&buf, str, strlen (str));
|
||||
buf_set_read (&buf, (const uint8_t *) str, strlen (str));
|
||||
while (buf_parse (&buf, '\n', line, sizeof (line)))
|
||||
++len;
|
||||
|
||||
/* alloc return array */
|
||||
ALLOC_ARRAY_CLEAR_GC (ret, char *, len + 1, gc);
|
||||
|
||||
buf_set_read (&buf, str, strlen(str));
|
||||
buf_set_read (&buf, (const uint8_t *) str, strlen(str));
|
||||
while (buf_parse (&buf, '\n', line, sizeof (line)))
|
||||
{
|
||||
chomp (line);
|
||||
|
Loading…
Reference in New Issue
Block a user