diff --git a/src/server/string-malloc.c b/src/server/string-malloc.c
index ec607530da9fe2dcd99cb0e9d1ba27554e59730d..218a658ed0134e885d8c02e193b894737bf65845 100644
--- a/src/server/string-malloc.c
+++ b/src/server/string-malloc.c
@@ -6,14 +6,16 @@
  */
 
 #include <stdio.h>
+#include <stddef.h>
 #include "smalloc.h"
 #include "log.h"
 #include "exp.h"
+#include "string-malloc.h"
 
 static int no_of_allocated_blocks = 0;
 
 EXPORT  void *
-string-malloc(size_t size)
+string_malloc(size_t size)
 {
    ++no_of_allocated_blocks;
    return smalloc (size);
@@ -21,18 +23,18 @@ string-malloc(size_t size)
 
 
 EXPORT  void
-string-free(void * ptr)
+string_free(void * ptr)
 {
     --no_of_allocated_blocks;
     sfree(ptr);
 }
 
 EXPORT  void *
-string-realloc (void * ptr,
+string_realloc (void * ptr,
 		size_t size)
 {
     if ( ptr == NULL )
-	return string-alloc (size);
+	return string_malloc (size);
 
     return srealloc (ptr, size);
 }