* under the terms of the license (GNU LGPL) which comes with this package. */
#include "xbt/sysdep.h"
-#include "xbt/log_private.h"
+#include "src/xbt/log_private.h"
#ifdef HAVE_SMPI
-#include "smpi/private.h" // to access bench_begin/end. Not ultraclean, I confess
+#include "src/smpi/private.h" // to access bench_begin/end. Not ultraclean, I confess
#endif
#include <stdio.h>
xbt_assert(sep>0);
data->filename=xbt_strdup(sep+1);
*sep='\0';
- data->limit=atol(buf);
+ char *endptr;
+ data->limit=strtol(buf,&endptr,10);
+ xbt_assert(endptr[0]=='\0', "Invalid buffer size: %s", buf);
+ xbt_free(buf);
if(roll)
data->count=-1;
else