Fix a Segfault on long labels

Change-Id: Ic8acf1ddaca972e0ef7ee838cf11f998f4af843c
Signed-off-by: José Bollo <jose.bollo@eurogiciel.fr>