[
https://issues.apache.org/jira/browse/TS-1256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14377261#comment-14377261
]
ASF subversion and git services commented on TS-1256:
-----------------------------------------------------
Commit 126f420a0eab97b7cfc850231f1bafc52c2eaf98 in trafficserver's branch
refs/heads/master from [~bwahn]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=126f420 ]
TS-1256: use a consistent definition of PATH_NAME_MAX
Since we define what PATH_NAME_MAX is ourselves, we should streamline
our code to only use PATH_NAME_MAX, not PATH_NAME_MAX + 1.
> Streamline usage of PATH_NAME_MAX
> ---------------------------------
>
> Key: TS-1256
> URL: https://issues.apache.org/jira/browse/TS-1256
> Project: Traffic Server
> Issue Type: Task
> Components: Cleanup
> Reporter: Igor Galić
> Assignee: James Peach
> Labels: newbie
> Fix For: 6.0.0
>
> Attachments: TS-1256.diff
>
>
> There are right now two different usages of the constant {{PATH_NAME_MAX}} in
> variable declarations:
> {code}
> char foo[PATH_NAME_MAX];
> {code}
> and
> {code}
> char bar[PATH_NAME_MAX + 1];
> {code}
> Since we define what {{PATH_NAME_MAX}} is ourselves, we should streamline our
> code to only use the first kind of declaration.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)