Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 124987
b: refs/heads/master
c: 0351468
h: refs/heads/master
i:
  124985: dc685ae
  124983: 0c4be3a
v: v3
  • Loading branch information
Duane Griffin authored and Al Viro committed Dec 31, 2008
1 parent 81e05ad commit f89ea5c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a17d5232de7b53d34229de79ec22f4bb04adb7e4
refs/heads/master: 035146851cfa2fe24c1d9dc7637bb009ad06b2f7
5 changes: 5 additions & 0 deletions trunk/include/linux/namei.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,9 @@ static inline char *nd_get_link(struct nameidata *nd)
return nd->saved_names[nd->depth];
}

static inline void nd_terminate_link(void *name, size_t len, size_t maxlen)
{
((char *) name)[min(len, maxlen)] = '\0';
}

#endif /* _LINUX_NAMEI_H */

0 comments on commit f89ea5c

Please sign in to comment.