diff --git a/src/nano.h b/src/nano.h index b3181834..689f3653 100644 --- a/src/nano.h +++ b/src/nano.h @@ -59,9 +59,9 @@ #define ISSET(flag) ((FLAGS(flag) & FLAGMASK(flag)) != 0) #define TOGGLE(flag) FLAGS(flag) ^= FLAGMASK(flag) -/* Macros for character allocation and more. */ -#define charalloc(howmuch) (char *)nmalloc((howmuch) * sizeof(char)) -#define charealloc(ptr, howmuch) (char *)nrealloc(ptr, (howmuch) * sizeof(char)) +/* Macros for allocation of character strings. */ +#define charalloc(howmuch) (char *)nmalloc(howmuch) +#define charealloc(ptr, howmuch) (char *)nrealloc(ptr, howmuch) /* In UTF-8 a character is at most six bytes long. */ #ifdef ENABLE_UTF8