Use estrlcat where possible - ubase - suckless linux base utils | |
git clone git://git.suckless.org/ubase | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 4c33cf2a98312a2947c365f7cfbff29615efe2a5 | |
parent 4dbd00fc948efef8e8bbe4d52189e98701227948 | |
Author: FRIGN <[email protected]> | |
Date: Thu, 11 Feb 2016 15:25:23 +0100 | |
Use estrlcat where possible | |
Diffstat: | |
M mount.c | 6 ++---- | |
1 file changed, 2 insertions(+), 4 deletions(-) | |
--- | |
diff --git a/mount.c b/mount.c | |
@@ -212,8 +212,7 @@ main(int argc, char *argv[]) | |
aflag = 1; | |
break; | |
case 'o': | |
- if (strlcat(fsopts, EARGF(usage()), sizeof(fsopts)) >= sizeof(… | |
- eprintf("option string too long\n"); | |
+ estrlcat(fsopts, EARGF(usage()), sizeof(fsopts)); | |
parseopts(fsopts, &flags, data, sizeof(data)); | |
break; | |
case 't': | |
@@ -263,8 +262,7 @@ main(int argc, char *argv[]) | |
source = me->mnt_fsname; | |
} | |
if (!fsopts[0]) | |
- if (strlcat(fsopts, me->mnt_opts, size… | |
- eprintf("%s: option string too… | |
+ estrlcat(fsopts, me->mnt_opts, sizeof(… | |
parseopts(fsopts, &flags, data, sizeof… | |
if (!types) | |
types = me->mnt_type; |