Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Compare Revisions
4f28970f7ab92d55e38161f5480883ee92635414...af7b3efba80be0ded12503343f8d406810e71d82
Commits (1)
Actually constify showbuf()
· af7b3efb
Deucе
authored
Feb 10, 2022
Geeze, this is ugly.
af7b3efb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
src/uifc/uifc32.c
src/uifc/uifc32.c
+1
-2
No files found.
src/uifc/uifc32.c
View file @
af7b3efb
...
@@ -2755,7 +2755,6 @@ void showbuf(int mode, int left, int top, int width, int height, const char *tit
...
@@ -2755,7 +2755,6 @@ void showbuf(int mode, int left, int top, int width, int height, const char *tit
tmp_buffer2
[
0
].
ch
=
api
->
chars
->
help_top_left
;
tmp_buffer2
[
0
].
ch
=
api
->
chars
->
help_top_left
;
j
=
title_len
;
j
=
title_len
;
if
(
j
>
width
-
6
)
{
if
(
j
>
width
-
6
)
{
*
(
title
+
width
-
6
)
=
0
;
j
=
width
-
6
;
j
=
width
-
6
;
}
}
for
(
i
=
1
;
i
<
(
width
-
j
)
/
2
;
i
++
)
for
(
i
=
1
;
i
<
(
width
-
j
)
/
2
;
i
++
)
...
@@ -2769,7 +2768,7 @@ void showbuf(int mode, int left, int top, int width, int height, const char *tit
...
@@ -2769,7 +2768,7 @@ void showbuf(int mode, int left, int top, int width, int height, const char *tit
}
}
tmp_buffer2
[
i
].
ch
=
api
->
chars
->
help_titlebreak_left
;
tmp_buffer2
[
i
].
ch
=
api
->
chars
->
help_titlebreak_left
;
i
+=
2
;
i
+=
2
;
for
(
pc
=
title
;
*
pc
;
pc
++
)
{
for
(
pc
=
title
;
*
pc
&&
pc
<
&
title
[
j
]
;
pc
++
)
{
tmp_buffer2
[
i
].
ch
=*
pc
;
tmp_buffer2
[
i
].
ch
=*
pc
;
i
++
;
i
++
;
}
}
...
...