Uploaded image for project: 'Guacamole'
  1. Guacamole
  2. GUACAMOLE-637

Compile error: 'strncpy' output may be truncated copying 7 bytes from a string of length 7

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.0.0
    • 1.1.0
    • guacamole-server
    • None
    • Fedora 28

    Description

      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
      

      Attachments

        Issue Links

          Activity

            People

              mjumper Mike Jumper
              TonyGeeUK T Gale
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: