summaryrefslogtreecommitdiff
path: root/pico/browse.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2015-07-26 23:36:30 -0600
committerEduardo Chappa <chappa@washington.edu>2015-07-26 23:36:30 -0600
commit2695b63fbe6c6a2206a2637137c6cd654f69943a (patch)
tree717008efdac9ae66bf33985dc99ee68aea45bf11 /pico/browse.c
parent36b77661542a63c4579943951d143c8cc9c99460 (diff)
downloadalpine-2695b63fbe6c6a2206a2637137c6cd654f69943a.tar.xz
* Clear even more warnings from clang 3.5 and MAC OSX.
Diffstat (limited to 'pico/browse.c')
-rw-r--r--pico/browse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pico/browse.c b/pico/browse.c
index 79940109..11d3eb3f 100644
--- a/pico/browse.c
+++ b/pico/browse.c
@@ -1482,7 +1482,7 @@ FileBrowse(char *dir, size_t dirlen, char *fn, size_t fnlen,
tmp[sizeof(tmp)-1] = '\0';
}
- strncat(tmp, gmp->current->fname, sizeof(tmp)-strlen(tmp));
+ strncat(tmp, gmp->current->fname, sizeof(tmp)-strlen(tmp)-1);
tmp[sizeof(tmp)-1] = '\0';
}