diff --git a/src/pike_memory.c b/src/pike_memory.c
index d4c6f632e01d022c5e3d5891507c02700568d3e4..65c3b15cc68016da241b025f375076c9d3e7413b 100644
--- a/src/pike_memory.c
+++ b/src/pike_memory.c
@@ -858,7 +858,7 @@ void cleanup_memhdrs(void)
   mt_destroy(&debug_malloc_mutex);
 }
 
-int main(int argc, char *argv[], char **env)
+int main(int argc, char **argv, char **env)
 {
   extern int dbm_main(int, char **, char**);
   mt_init(&debug_malloc_mutex);