summaryrefslogtreecommitdiff
path: root/firmware/common/strlcat.c
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2010-02-22 21:24:09 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2010-02-22 21:24:09 +0000
commit0b7dcd69c801a7439de5bfc53ae4005ec3846634 (patch)
tree42e62d3eec4ec49c7fd95ff01d5ca7d015c6fd45 /firmware/common/strlcat.c
parent3f5f3524d478743a4c2f470f0baf7b767ce8d1c2 (diff)
Remove tabs in firmware path (taking into account the original spacing).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24864 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/common/strlcat.c')
-rw-r--r--firmware/common/strlcat.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/firmware/common/strlcat.c b/firmware/common/strlcat.c
index 0a113dd134..da0d253e79 100644
--- a/firmware/common/strlcat.c
+++ b/firmware/common/strlcat.c
@@ -29,28 +29,28 @@
size_t
strlcat(char *dst, const char *src, size_t siz)
{
- char *d = dst;
- const char *s = src;
- size_t n = siz;
- size_t dlen;
+ char *d = dst;
+ const char *s = src;
+ size_t n = siz;
+ size_t dlen;
- /* Find the end of dst and adjust bytes left but don't go past end */
- while (n-- != 0 && *d != '\0')
- d++;
- dlen = d - dst;
- n = siz - dlen;
+ /* Find the end of dst and adjust bytes left but don't go past end */
+ while (n-- != 0 && *d != '\0')
+ d++;
+ dlen = d - dst;
+ n = siz - dlen;
- if (n == 0)
- return(dlen + strlen(s));
- while (*s != '\0') {
- if (n != 1) {
- *d++ = *s;
- n--;
- }
- s++;
- }
- *d = '\0';
+ if (n == 0)
+ return(dlen + strlen(s));
+ while (*s != '\0') {
+ if (n != 1) {
+ *d++ = *s;
+ n--;
+ }
+ s++;
+ }
+ *d = '\0';
- return(dlen + (s - src)); /* count does not include NUL */
+ return(dlen + (s - src)); /* count does not include NUL */
}