ubase

suckless linux base utils
git clone git://git.2f30.org/ubase.git
Log | Files | Refs | README | LICENSE

commit e6ab1dcb941f60fc80d5763f93ba8146c5532543
parent 8b72317805cf3b19bffc6c036c51fbbad12e5cd0
Author: FRIGN <dev@frign.de>
Date:   Thu Feb 11 15:25:23 +0100

Use estrlcat where possible

Diffstat:
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(fsopts)) - 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, sizeof(fsopts)) >= sizeof(fsopts)) - eprintf("%s: option string too long\n", target); + estrlcat(fsopts, me->mnt_opts, sizeof(fsopts)); parseopts(fsopts, &flags, data, sizeof(data)); if (!types) types = me->mnt_type;