From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-f194.google.com (mail-lj1-f194.google.com [209.85.208.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 247A942EF5C for ; Thu, 18 Jun 2020 01:03:49 +0300 (MSK) Received: by mail-lj1-f194.google.com with SMTP id q19so4821482lji.2 for ; Wed, 17 Jun 2020 15:03:48 -0700 (PDT) From: Cyrill Gorcunov Date: Thu, 18 Jun 2020 01:03:29 +0300 Message-Id: <20200617220335.836265-1-gorcunov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 0/6] xlog: cleanup patches List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tml Cc: Vladislav Shpilevoy , Alexander Turenko While been working on the feature #4743 I've noticed that we've a pure mess in PATH_MAX usage inside xlog code. Lets clean it a bit while we're here. Basically the idea is to not use PATH_MAX+1 constant, the PATH_MAX already implies to include end of string. branch gorcunov/gh-4743-path-max-cleanup Cyrill Gorcunov (6): box: drop inline from box_cfg_xc xlog: xlog_cursor -- eliminate redundant pad in the structure xlog: xdir -- use PATH_MAX for dirname xlog: use PATH_MAX for filename xlog: xlog_cursor -- use sizeof with snprintf for safety xlog: xdir_format_filename -- use PATH_MAX src/box/box.cc | 2 +- src/box/xlog.c | 14 ++++++++------ src/box/xlog.h | 12 ++++++------ 3 files changed, 15 insertions(+), 13 deletions(-) -- 2.26.2