Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 360835
b: refs/heads/master
c: 9276dfd
h: refs/heads/master
i:
  360833: 9aefc27
  360831: 78cef9f
v: v3
  • Loading branch information
Chen Gang authored and Benjamin Herrenschmidt committed Mar 5, 2013
1 parent 314976f commit 43dc08d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 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: 6b6680c4ea3952af8ae76915cbca41245147741b
refs/heads/master: 9276dfd27897a0b29d8b5814f39a1f82f56b6b6b
9 changes: 2 additions & 7 deletions trunk/drivers/tty/hvc/hvcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -881,17 +881,12 @@ static struct vio_driver hvcs_vio_driver = {
/* Only called from hvcs_get_pi please */
static void hvcs_set_pi(struct hvcs_partner_info *pi, struct hvcs_struct *hvcsd)
{
int clclength;

hvcsd->p_unit_address = pi->unit_address;
hvcsd->p_partition_ID = pi->partition_ID;
clclength = strlen(&pi->location_code[0]);
if (clclength > HVCS_CLC_LENGTH)
clclength = HVCS_CLC_LENGTH;

/* copy the null-term char too */
strncpy(&hvcsd->p_location_code[0],
&pi->location_code[0], clclength + 1);
strlcpy(&hvcsd->p_location_code[0],
&pi->location_code[0], sizeof(hvcsd->p_location_code));
}

/*
Expand Down

0 comments on commit 43dc08d

Please sign in to comment.