Why does this input "-rwx------  1 reid  staff    1734 Jun 22 14:52 prog", give this output "- rwx------                               1                            reid                           staff 1536 Jun 0 14:52                            prog 
zsh: abort      ./testing"
#include <stdio.h>
#include <stdlib.h>

int main(){
	char directory;
	char permissions[9];
	char idk[31];
	char username[31];
	char group_name[31];
	int size;
	char month[3];
	int date;
	char time[5];
	char filename[31];

	size = 0;

	scanf(" %c %9s %31s %31s %31s %d %3s %d %5s %31s", &directory, permissions, idk, username, group_name, &size, month, &date, time, filename);
	
	printf("%c %9s %31s %31s %31s %d %3s %d %5s %31s \n", directory, permissions, idk, username, group_name, size, month, date, time, filename);

	return 0;
}