summaryrefslogtreecommitdiff
path: root/lib/malloca.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/malloca.h')
-rw-r--r--lib/malloca.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/malloca.h b/lib/malloca.h
index fd40073e3..9cf7fbb52 100644
--- a/lib/malloca.h
+++ b/lib/malloca.h
@@ -77,6 +77,7 @@ extern void freea (void *p);
/* nmalloca(N,S) is an overflow-safe variant of malloca (N * S).
It allocates an array of N objects, each with S bytes of memory,
on the stack. S must be positive and N must be nonnegative.
+ Either N or S should be of type ptrdiff_t or size_t or wider.
The array must be freed using freea() before the function returns. */
#define nmalloca(n, s) (xalloc_oversized (n, s) ? NULL : malloca ((n) * (s)))