-/* Copyright (c) 2010. The SimGrid Team.
+/* Copyright (c) 2010-2014. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
static char spaces[128];
- xbt_assert(length < 128);
+ xbt_assert(length >= 0 && length < 128,
+ "Invalid indentation length: %d", length);
if (length != 0) {
memset(spaces, ' ', length);
}