Skip to content

Commit

Permalink
Forgot one
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Miller committed Dec 22, 2020
1 parent 628ab26 commit d094129
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
Binary file modified .DS_Store
Binary file not shown.
Binary file removed .swp
Binary file not shown.
2 changes: 1 addition & 1 deletion fs/proc/root.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ char * parse_edx_flags(dword_t edx, char *edx_flags) { /* Translate edx bit flag
}

char * translate_vendor_id(dword_t *ebx, dword_t *ecx, dword_t *edx) {
char *byteArray = malloc(12 + 1); // vendor_id is fixed at 12 bytes
char *byteArray = calloc(12 + 1, sizeof(char)); // vendor_id is fixed at 12 bytes

// convert from an unsigned long int to a 4-byte array
byteArray[0] = (int)((*ebx & 0XFF));
Expand Down

0 comments on commit d094129

Please sign in to comment.