[hackers] [ubase] mount: rename bufsiz to datasiz for clarity || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Fri, 04 Apr 2014 21:09:48 +0200

commit 3c47a9a9d677c067a8d96ef97818f01230520e1a
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Fri Apr 4 19:39:34 2014 +0200

    mount: rename bufsiz to datasiz for clarity
    
    datasiz relates to the size of data
    
    Signed-off-by: Hiltjo Posthuma <hiltjo_AT_codemadness.org>

diff --git a/mount.c b/mount.c
index a43444b..c4d070e 100644
--- a/mount.c
+++ b/mount.c
_AT_@ -31,7 +31,7 @@ struct {
 };
 
 static void
-parseopts(char *popts, unsigned long *flags, char *data, size_t bufsiz)
+parseopts(char *popts, unsigned long *flags, char *data, size_t datasiz)
 {
         unsigned int i, validopt;
         size_t optlen, dlen = 0;
_AT_@ -55,7 +55,7 @@ parseopts(char *popts, unsigned long *flags, char *data, size_t bufsiz)
                 if(!validopt) {
                         /* unknown option, pass as data option to mount() */
                         if((optlen = strlen(name))) {
- if(dlen + optlen + 2 >= bufsiz)
+ if(dlen + optlen + 2 >= datasiz)
                                         return; /* prevent overflow */
                                 if(dlen)
                                         data[dlen++] = ',';
Received on Fri Apr 04 2014 - 21:09:48 CEST

This archive was generated by hypermail 2.3.0 : Fri Apr 04 2014 - 21:12:34 CEST