More correct calloc arguments
Fixed bookmark name buffer overflow