Update copyright dates
[src/app-framework-binder.git] / src / globset.c
index 2bad449..124ff24 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2018, 2019 "IoT.bzh"
+ * Copyright (C) 2015-2020 "IoT.bzh"
  * Author: José Bollo <jose.bollo@iot.bzh>
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -323,7 +323,7 @@ int globset_add(
        }
 
        /* not found, create it */
-       ph = malloc(len + sizeof *ph);
+       ph = malloc(1 + len + sizeof *ph);
        if (!ph)
                return -1;