diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1998-11-09 11:06:28 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1998-11-09 11:06:28 +0000 |
commit | 27f760bfb0b57b3fcab537ddab2e20d1f6048033 (patch) | |
tree | 72531ec8f1686e5dd7a89c803396778200f30af2 /browser.c | |
parent | fc1c8ec2843238b2cdddc12ff2944120242413a7 (diff) |
The attached patch fixes a potential problem in folder_format_str()
where a fixed buffer might not be null terminated. From Vikas.
Diffstat (limited to 'browser.c')
-rw-r--r-- | browser.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -172,7 +172,7 @@ folder_format_str (char *dest, size_t destlen, char op, const char *src, } break; case 'f': - strncpy (fn, folder->name, sizeof(fn) - 1); + strfcpy (fn, folder->name, sizeof(fn)); if (folder->f != NULL) { strcat (fn, S_ISLNK (folder->f->st_mode) ? "@" : |