X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/edde8f7fbc1b74a81551bf9eb7bac1935b999296..8be7ea3f9e71cd563e91b6aba63f5c70f043fbd5:/src/bindings/lua/lua_utils.c diff --git a/src/bindings/lua/lua_utils.c b/src/bindings/lua/lua_utils.c index 24bd4ab523..444f15d791 100644 --- a/src/bindings/lua/lua_utils.c +++ b/src/bindings/lua/lua_utils.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2010. The SimGrid Team. +/* Copyright (c) 2010-2012. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -103,7 +103,8 @@ const char* sglua_get_spaces(int length) { 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); }