Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 230354
b: refs/heads/master
c: 58818a7
h: refs/heads/master
v: v3
  • Loading branch information
Dimitris Papastamos authored and Mark Brown committed Dec 6, 2010
1 parent 977adbd commit 4deb112
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 589c3563f6476950f26b5bcc9beb1b39a7bcc644
refs/heads/master: 58818a77cd415e2f76607749de5a1ff24e58cefe
4 changes: 2 additions & 2 deletions trunk/sound/soc/soc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -3183,7 +3183,7 @@ static inline char *fmt_single_name(struct device *dev, int *id)
if (dev_name(dev) == NULL)
return NULL;

strncpy(name, dev_name(dev), NAME_SIZE);
strlcpy(name, dev_name(dev), NAME_SIZE);

/* are we a "%s.%d" name (platform and SPI components) */
found = strstr(name, dev->driver->name);
Expand All @@ -3206,7 +3206,7 @@ static inline char *fmt_single_name(struct device *dev, int *id)

/* sanitize component name for DAI link creation */
snprintf(tmp, NAME_SIZE, "%s.%s", dev->driver->name, name);
strncpy(name, tmp, NAME_SIZE);
strlcpy(name, tmp, NAME_SIZE);
} else
*id = 0;
}
Expand Down

0 comments on commit 4deb112

Please sign in to comment.