cf99a97 fix some minor bugs

3 files Authored by Heming Zhao 3 years ago, Committed by teigland 3 years ago,
    fix some minor bugs
    
    1>
    log_config() should print "0" when m_buf or j_buf or l_buf is empty.
    
    2>
    parameter "%d" lacks object in confchg_cb_daemon().
    
    3>
    in run_helper():
    running_count doesn't work for run_helper process.
    running_count limits cmd numbers not to beyond 32. This assessment should
    be put in run_helper while(1).
    
    4>
    fix decode_arguments() naming mistake for fence_ack command.
    
    5>
    removing a gcc warning for decode_arguments()
    
    message:
    
    ```
    /usr/include/bits/string_fortified.h:95:10: warning: ‘__builtin_strncpy’
    specified bound 64 equals destination size [-Wstringop-truncation]
       95 |   return __builtin___strncpy_chk (__dest, __src, __len,
          |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       96 |                                   __glibc_objsize (__dest));
          |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~
    ```
    
    uuid is generated by uuid_generate(), which is 37-byte (36-byte uuid
    plus tailing '\0'). In exist code, uuid[] is 64-byte array, which has
    enough space to fill 37-byte string. So we could safely do one-byte
    less copy in strncpy().
    
    Signed-off-by: Heming Zhao <heming.zhao@suse.com>
    
        
file modified
+3 -2
file modified
+5 -5
file modified
+8 -4