Fix #37 (thank you Mehdi)
[neverball] / share / st_lang.c
index 693ab59..fb22a7a 100644 (file)
@@ -1,5 +1,6 @@
-/*   
- * Copyright (C) 2003 Robert Kooima
+/*
+ * Copyright (C) 2003 Robert Kooima - 2006 Jean Privat
+ * Part of the Neverball Project http://icculus.org/neverball/
  *
  * NEVERBALL is  free software; you can redistribute  it and/or modify
  * it under the  terms of the GNU General  Public License as published
@@ -93,7 +94,7 @@ static int lang_enter(void)
                    ln = ln1;
                else
                {
-                   ln = malloc(sizeof(char)*(strlen(ln1)+strlen(ln2)+1));
+                   ln = malloc(sizeof(char)*(strlen(ln1)+strlen(ln2)+4));
                    lang_names[i-1] = ln;
                    strcpy(ln, ln1);
                    strcat(ln, " (");