fdev: Improve fdev handling with epoll
[src/app-framework-binder.git] / src / afb-api-so-v1.c
index 9a9e47a..985a113 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016, 2017 "IoT.bzh"
+ * Copyright (C) 2016, 2017, 2018 "IoT.bzh"
  * Author José Bollo <jose.bollo@iot.bzh>
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -239,7 +239,7 @@ int afb_api_so_v1_add(const char *path, void *handle, struct afb_apiset *apiset)
                ERROR("binding [%s] bad prefix...", path);
                goto error;
        }
-       if (!afb_api_is_valid_name(desc->binding->v1.prefix)) {
+       if (!afb_api_is_valid_name(desc->binding->v1.prefix, 1)) {
                ERROR("binding [%s] invalid prefix...", path);
                goto error;
        }