• Kunwu Chan's avatar
    SUNRPC: Fix -Wformat-truncation warning · 9090a7f7
    Kunwu Chan authored
    Increase size of the servername array to avoid truncated output warning.
    
    net/sunrpc/clnt.c:582:75: error:‘%s’ directive output may be truncated
    writing up to 107 bytes into a region of size 48
    [-Werror=format-truncation=]
      582 |                   snprintf(servername, sizeof(servername), "%s",
          |                                                             ^~
    
    net/sunrpc/clnt.c:582:33: note:‘snprintf’ output
    between 1 and 108 bytes into a destination of size 48
      582 |                     snprintf(servername, sizeof(servername), "%s",
          |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      583 |                                          sun->sun_path);
    Signed-off-by: default avatarKunwu Chan <chentao@kylinos.cn>
    Suggested-by: default avatarNeilBrown <neilb@suse.de>
    Signed-off-by: default avatarAnna Schumaker <anna.schumaker@oracle.com>
    9090a7f7
clnt.c 80.2 KB