diff options
author | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2005-12-08 15:36:27 +0000 |
---|---|---|
committer | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2005-12-08 15:36:27 +0000 |
commit | e1447acc97830cedbd972b2672e60d803ee38190 (patch) | |
tree | af696e03231f44afe56eae781e5742176b9df629 | |
parent | Fixed segfault that occurred if remote_cert_eku is undefined and no (diff) | |
download | openvpn-e1447acc97830cedbd972b2672e60d803ee38190.tar.xz |
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
-rw-r--r-- | misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |