You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@guacamole.apache.org by "Michael Jumper (JIRA)" <ji...@apache.org> on 2018/11/12 23:14:00 UTC

[jira] [Updated] (GUACAMOLE-637) Compile error: 'strncpy' output may be truncated copying 7 bytes from a string of length 7

     [ https://issues.apache.org/jira/browse/GUACAMOLE-637?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Jumper updated GUACAMOLE-637:
-------------------------------------
    Description: 
Build error on Fedora 28:

{code:none}
CC guac_svc/guacsvc_client_la-svc_service.lo
guac_svc/svc_service.c: In function 'VirtualChannelEntry':
guac_svc/svc_service.c:56:5: error: 'strncpy' output may be truncated copying 7 bytes from a string of length 7 [-Werror=stringop-truncation]
 strncpy(svc_plugin->plugin.channel_def.name, svc->name,
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 GUAC_RDP_SVC_MAX_LENGTH);
 ~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
{code}

  was:
Build error on Fedora 28:

CC guac_svc/guacsvc_client_la-svc_service.lo
guac_svc/svc_service.c: In function 'VirtualChannelEntry':
guac_svc/svc_service.c:56:5: error: 'strncpy' output may be truncated copying 7 bytes from a string of length 7 [-Werror=stringop-truncation]
 strncpy(svc_plugin->plugin.channel_def.name, svc->name,
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 GUAC_RDP_SVC_MAX_LENGTH);
 ~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors


> Compile error: 'strncpy' output may be truncated copying 7 bytes from a string of length 7
> ------------------------------------------------------------------------------------------
>
>                 Key: GUACAMOLE-637
>                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-637
>             Project: Guacamole
>          Issue Type: Bug
>          Components: guacamole-server
>    Affects Versions: 1.0.0
>         Environment: Fedora 28
>            Reporter: T Gale
>            Assignee: Michael Jumper
>            Priority: Minor
>
> Build error on Fedora 28:
> {code:none}
> CC guac_svc/guacsvc_client_la-svc_service.lo
> guac_svc/svc_service.c: In function 'VirtualChannelEntry':
> guac_svc/svc_service.c:56:5: error: 'strncpy' output may be truncated copying 7 bytes from a string of length 7 [-Werror=stringop-truncation]
>  strncpy(svc_plugin->plugin.channel_def.name, svc->name,
>  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>  GUAC_RDP_SVC_MAX_LENGTH);
>  ~~~~~~~~~~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)