summaryrefslogtreecommitdiffstats
path: root/src/opk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/opk.c')
-rw-r--r--src/opk.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/opk.c b/src/opk.c
index 178db6c..e1d7a43 100644
--- a/src/opk.c
+++ b/src/opk.c
@@ -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;
}