Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 234149
b: refs/heads/master
c: 994fed2
h: refs/heads/master
i:
  234147: 98a4701
v: v3
  • Loading branch information
Stefan Weil authored and Ralf Baechle committed Mar 14, 2011
1 parent 1f9b6a1 commit f7458a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d3ce0e98b7fe17bb1dec9f6d7c50213db01e7189
refs/heads/master: 994fed2dd2166f86b62ec53c7424660145f138ee
3 changes: 2 additions & 1 deletion trunk/arch/mips/loongson/common/machtype.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void __weak __init mach_prom_init_machtype(void)

void __init prom_init_machtype(void)
{
char *p, str[MACHTYPE_LEN];
char *p, str[MACHTYPE_LEN + 1];
int machtype = MACH_LEMOTE_FL2E;

mips_machtype = LOONGSON_MACHTYPE;
Expand All @@ -53,6 +53,7 @@ void __init prom_init_machtype(void)
}
p += strlen("machtype=");
strncpy(str, p, MACHTYPE_LEN);
str[MACHTYPE_LEN] = '\0';
p = strstr(str, " ");
if (p)
*p = '\0';
Expand Down

0 comments on commit f7458a4

Please sign in to comment.