diff options
author | Bruno Haible <bruno@clisp.org> | 2007-06-09 11:11:14 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2007-06-09 11:11:14 +0000 |
commit | 90988ede07abd2e58283d5e06b1b69f74b6967d2 (patch) | |
tree | b4fe189a7179707b12ed3697811c36e0975e9a1c /lib/c-strcasestr.c | |
parent | 8b420b18471251565faf524a4e9dbbe27e298d78 (diff) | |
download | gnulib-90988ede07abd2e58283d5e06b1b69f74b6967d2.tar.gz |
Update after allocsa -> malloca renaming.
Diffstat (limited to 'lib/c-strcasestr.c')
-rw-r--r-- | lib/c-strcasestr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/c-strcasestr.c b/lib/c-strcasestr.c index 9e0cd387f2..8c47f4433d 100644 --- a/lib/c-strcasestr.c +++ b/lib/c-strcasestr.c @@ -1,5 +1,5 @@ /* c-strcasestr.c -- case insensitive substring search in C locale - Copyright (C) 2005-2006 Free Software Foundation, Inc. + Copyright (C) 2005-2007 Free Software Foundation, Inc. Written by Bruno Haible <bruno@clisp.org>, 2005. This program is free software; you can redistribute it and/or modify @@ -25,7 +25,7 @@ #include <stddef.h> #include <string.h> -#include "allocsa.h" +#include "malloca.h" #include "c-ctype.h" /* Knuth-Morris-Pratt algorithm. @@ -38,7 +38,7 @@ knuth_morris_pratt (const char *haystack, const char *needle, size_t m = strlen (needle); /* Allocate the table. */ - size_t *table = (size_t *) allocsa (m * sizeof (size_t)); + size_t *table = (size_t *) malloca (m * sizeof (size_t)); if (table == NULL) return false; /* Fill the table. @@ -113,7 +113,7 @@ knuth_morris_pratt (const char *haystack, const char *needle, } } - freesa (table); + freea (table); return true; } |