diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2023-05-22 20:40:43 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2023-05-28 19:10:32 (EDT) |
commit | 2a5c9127ad298fd8ad11579f33c4d931d59c53dc (patch) | |
tree | ea5a9cb9cd17771dc5aa4cbb1e9e26593910046f /src/opk.c | |
parent | 194db3b3400e2f56a91e1e97ab14f6a475d4ea75 (diff) |
opk/write: Fix path length handling, add virt path
Diffstat (limited to 'src/opk.c')
-rw-r--r-- | src/opk.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -18,6 +18,7 @@ */ #include <stdlib.h> +#include <string.h> #include "defs.h" #include "specials.h" #include "opk.h" @@ -109,6 +110,7 @@ int opkg_opk_opk_control_dir(struct opkg_opk_opk *opk, const char *dir) { opk->control_dir = dir; + opk->control_dir_len = strlen(dir); return OPKG_OPK_OK; } @@ -116,6 +118,7 @@ int opkg_opk_opk_data_dir(struct opkg_opk_opk *opk, const char *dir) { opk->data_dir = dir; + opk->data_dir_len = strlen(dir); return OPKG_OPK_OK; } |