summaryrefslogtreecommitdiff
path: root/src/libexecline/exlsn_define.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-03-12 13:24:30 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-03-12 13:24:30 +0000
commit54979a7b81a397eca8438d3def2a0fe5b19825e0 (patch)
tree4dac9941e6bca1d693cfb9c0388abdb96e202fcb /src/libexecline/exlsn_define.c
parent10cb49f302ab1084c5b86d4c47da17d8abf09159 (diff)
downloadexecline-54979a7b81a397eca8438d3def2a0fe5b19825e0.tar.xz
Fix a few omissions
Diffstat (limited to 'src/libexecline/exlsn_define.c')
-rw-r--r--src/libexecline/exlsn_define.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libexecline/exlsn_define.c b/src/libexecline/exlsn_define.c
index 066b8ff..3e7429c 100644
--- a/src/libexecline/exlsn_define.c
+++ b/src/libexecline/exlsn_define.c
@@ -1,6 +1,6 @@
/* ISC license. */
-#include <skalibs/bytestr.h>
+#include <string.h>
#include <skalibs/sgetopt.h>
#include <skalibs/stralloc.h>
#include <skalibs/genalloc.h>
@@ -32,7 +32,7 @@ int exlsn_define (int argc, char const **argv, char const *const *envp, exlsn_t
if (argc < 2) return -3 ;
if (!*argv[0] || el_vardupl(argv[0], info->vars.s, info->vars.len)) return -2 ;
- if (!stralloc_catb(&info->vars, argv[0], str_len(argv[0]) + 1)) return -1 ;
+ if (!stralloc_catb(&info->vars, argv[0], strlen(argv[0]) + 1)) return -1 ;
if (!stralloc_cats(&info->values, argv[1])) goto err ;
{
int r = el_transform(&info->values, blah.value, &si) ;