summaryrefslogtreecommitdiffstats
path: root/stdlib/header.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/header.c')
-rw-r--r--stdlib/header.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stdlib/header.c b/stdlib/header.c
index de09bd8b6..3a8797002 100644
--- a/stdlib/header.c
+++ b/stdlib/header.c
@@ -12,13 +12,13 @@
/* $Id$ */
char * runtime_name = "ocamlrun";
-char * errmsg = "Cannot exec ocamlrun.\n";
+char errmsg [] = "Cannot exec ocamlrun.\n";
int main(argc, argv)
int argc;
char ** argv;
{
execvp(runtime_name, argv);
- write(2, errmsg, strlen(errmsg));
+ write(2, errmsg, sizeof(errmsg)-1);
return 2;
}