diff --git a/src/Str.c b/src/Str.c index b4172b1..65451fb 100644 --- a/src/Str.c +++ b/src/Str.c @@ -171,7 +171,7 @@ StrRandom(size_t len) return NULL; } - nums = Malloc(len); + nums = Malloc(len * sizeof(int)); if (!nums) { Free(str); diff --git a/tools/bin/td b/tools/bin/td index af9bcdd..0fa9bd2 100644 --- a/tools/bin/td +++ b/tools/bin/td @@ -36,7 +36,7 @@ CFLAGS="${CFLAGS} ${DEFINES} ${INCLUDES}" LDFLAGS="${LDFLAGS} ${STATIC}" if [ "$DEBUG" = "1" ]; then - CFLAGS="$CFLAGS -O0 -g" + CFLAGS="$CFLAGS -O0 -g -pg" LDFLAGS="-lm -pthread -v" PROG="$PROG-debug" fi