diff options
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; } |