Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
684316ba
Commit
684316ba
authored
Dec 09, 2019
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forgot this file in
c8393e7b
parent
c8393e7b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
vcli_serve.c
lib/libvarnish/vcli_serve.c
+1
-2
No files found.
lib/libvarnish/vcli_serve.c
View file @
684316ba
...
...
@@ -263,7 +263,6 @@ cls_exec(struct VCLS_fd *cfd, char * const *av)
char
*
s
;
unsigned
lim
;
int
retval
=
0
;
const
char
*
trunc
=
"!
\n
[response was truncated]
\n
"
;
CHECK_OBJ_NOTNULL
(
cfd
,
VCLS_FD_MAGIC
);
cs
=
cfd
->
cls
;
...
...
@@ -334,7 +333,7 @@ cls_exec(struct VCLS_fd *cfd, char * const *av)
if
(
len
>
lim
)
{
if
(
cli
->
result
==
CLIS_OK
)
cli
->
result
=
CLIS_TRUNCATED
;
s
trcpy
(
s
+
(
lim
-
strlen
(
trunc
)),
trunc
)
;
s
[
lim
-
1
]
=
'\0'
;
assert
(
strlen
(
s
)
<=
lim
);
}
if
(
VCLI_WriteResult
(
cfd
->
fdo
,
cli
->
result
,
s
)
||
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment