diff options
Diffstat (limited to 'src/globset.c')
-rw-r--r-- | src/globset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/globset.c b/src/globset.c index 228d8523..fa378843 100644 --- a/src/globset.c +++ b/src/globset.c @@ -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; |