fixed 2 buffer dimensions in snprintf