diff options
Diffstat (limited to 'examples/libc')
| -rw-r--r-- | examples/libc/ex4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/libc/ex4.c b/examples/libc/ex4.c index ec1c533a98..df8839c5bc 100644 --- a/examples/libc/ex4.c +++ b/examples/libc/ex4.c @@ -58,7 +58,7 @@ char * str_accumulate(const char * s) accu = (char *) pthread_getspecific(str_key); /* It's initially NULL, meaning that we must allocate the buffer first. */ if (accu == NULL) { - accu = malloc(1024); + accu = (char *)malloc(1024); if (accu == NULL) return NULL; accu[0] = 0; /* Store the buffer pointer in the thread-specific data. */ |
