projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix formatting of a ChangeLog entry.
[gnulib.git]
/
lib
/
memmem.c
diff --git
a/lib/memmem.c
b/lib/memmem.c
index
b7f3e12
..
57c6560
100644
(file)
--- a/
lib/memmem.c
+++ b/
lib/memmem.c
@@
-39,10
+39,7
@@
knuth_morris_pratt (const char *haystack, const char *last_haystack,
const char **resultp)
{
/* Allocate the table. */
const char **resultp)
{
/* Allocate the table. */
- size_t *table;
- if ((size_t) -1 / sizeof (size_t) < m)
- return false;
- table = (size_t *) malloca (m * sizeof (size_t));
+ size_t *table = (size_t *) nmalloca (m, sizeof (size_t));
if (table == NULL)
return false;
/* Fill the table.
if (table == NULL)
return false;
/* Fill the table.