From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f174.google.com (mail-pf0-f174.google.com [209.85.192.174]) by dpdk.org (Postfix) with ESMTP id 08A7D7EE3 for ; Fri, 27 Apr 2018 00:19:30 +0200 (CEST) Received: by mail-pf0-f174.google.com with SMTP id p6so19442261pfn.4 for ; Thu, 26 Apr 2018 15:19:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=AkCjrR4UyU4pjEm8GxUdta6Y6Oex3EQNSR+8Fg2/a0E=; b=JEZZfAY5cGdPV4myfU0iGLRlT/WODBevzNOKD1s5Z1ITbiCHs/KoRb+Ec3JZERcidN +Mx3pUCju+FulrFUgwpfcbVaJfF0OU2Xe5AdG32r3uzMq/t03tBV647R8EMiiEbHkTki dY+Y/Rt/wTRsISbS6neAtgM2dLt5sqZMporGdQ+XEA8HuxirQ7RwfDLGnwkegbqmct3j B3htyykkzK5Bx/CUIFoCzYSq8t8WfjubmA2UxnA9epwUiizOVW1ApcPP8TVTTZuOB/it 3Hys2kB7cOAbxpTvn1YANTx4iTI5U45LhYMjCao5lLFW2mnnNr1/pnFu/XU9kRyFvCts ZxaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=AkCjrR4UyU4pjEm8GxUdta6Y6Oex3EQNSR+8Fg2/a0E=; b=CEPfIZU1BbhBmsUyMx4EANagyG2xfZgb3253wSxUUwicvsrc2benB7rJIQ8i7ci9f7 3jNQU0gd7L0R5dparJOTjp6qZrTcDW4Ao46d3zMAL+7xE+GFTzQHeAW865VY+sm3Kn7O RjX/vvYi+xBb+JuBZN+vWI6B+CGOqL0ZtzrPhuG51u+Z1HI4jGn5KENgobdDhvUbZfKS hAFz+5PHecs1dzJOJimClEsoor2Fh5WUS9ID355ssz0d/fcc8G+dYgwGRrZ+j7BoQKRV I8tHdPvGsUO78r76f4p5uHk1gUsM7PZWGoTXQS8Itl4u48XTlCwdM9KGgoj5m7ORmzT9 bVlQ== X-Gm-Message-State: ALQs6tCUkoQ5dYNTjiiR7guJgq/bUg+smTAg9boscvhBDb4oFj/186S/ z34SpdyK9TrNW/11p2kO0wT31w== X-Google-Smtp-Source: AIpwx4/BYaZfcp9H0MidbRV7EQLcUugDPwQ3zhUktNuYhkLmbPhpuRqfCT3ySGoz8yrQfmpdind1Mw== X-Received: by 10.101.101.132 with SMTP id u4mr29531582pgv.260.1524781170201; Thu, 26 Apr 2018 15:19:30 -0700 (PDT) Received: from xeon-e3 (204-195-71-95.wavecable.com. [204.195.71.95]) by smtp.gmail.com with ESMTPSA id n83sm51056105pfi.183.2018.04.26.15.19.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 26 Apr 2018 15:19:30 -0700 (PDT) Date: Thu, 26 Apr 2018 15:19:28 -0700 From: Stephen Hemminger To: Medvedkin Vladimir Cc: dev@dpdk.org, bruce.richardson@intel.com, thomas@monjalon.net, cristian.dumitrescu@intel.com Message-ID: <20180426151928.4a85b4d5@xeon-e3> In-Reply-To: <1524780214-23196-2-git-send-email-medvedkinv@gmail.com> References: <1524780214-23196-1-git-send-email-medvedkinv@gmail.com> <1524780214-23196-2-git-send-email-medvedkinv@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v4 1/4] Add RIB library X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Apr 2018 22:19:31 -0000 On Fri, 27 Apr 2018 01:03:31 +0300 Medvedkin Vladimir wrote: > + snprintf(rib->name, sizeof(rib->name), "%s", name); Use strlcpy