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
Commits
c9d2ed80
Commit
c9d2ed80
authored
Jul 20, 2004
by
rswindell
Browse files
ulist() option list can be terminated by a NULL pointer.
parent
e7669a1c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
src/uifc/uifc.c
src/uifc/uifc.c
+1
-1
src/uifc/uifc32.c
src/uifc/uifc32.c
+1
-1
src/uifc/uifcc.c
src/uifc/uifcc.c
+1
-1
src/uifc/uifcd.c
src/uifc/uifcd.c
+1
-1
src/uifc/uifcx.c
src/uifc/uifcx.c
+1
-1
No files found.
src/uifc/uifc.c
View file @
c9d2ed80
...
...
@@ -374,7 +374,7 @@ if(mode&WIN_GET) bline|=BL_GET;
if
(
mode
&
WIN_PUT
)
bline
|=
BL_PUT
;
bottomline
(
bline
);
while
(
opts
<
max_opts
&&
opts
<
MAX_OPTS
)
if
(
option
[
opts
][
0
]
==
0
)
if
(
option
[
opts
]
==
NULL
||
option
[
opts
][
0
]
==
0
)
break
;
else
opts
++
;
if
(
mode
&
WIN_XTR
&&
opts
<
max_opts
&&
opts
<
MAX_OPTS
)
...
...
src/uifc/uifc32.c
View file @
c9d2ed80
...
...
@@ -636,7 +636,7 @@ int ulist(int mode, int left, int top, int width, int *cur, int *bar
if
(
mode
&
WIN_PUT
)
bline
|=
BL_PUT
;
bottomline
(
bline
);
while
(
opts
<
MAX_OPTS
)
if
(
option
[
opts
][
0
]
==
0
)
if
(
option
[
opts
]
==
NULL
||
option
[
opts
][
0
]
==
0
)
break
;
else
opts
++
;
if
(
mode
&
WIN_XTR
&&
opts
<
MAX_OPTS
)
...
...
src/uifc/uifcc.c
View file @
c9d2ed80
...
...
@@ -422,7 +422,7 @@ int ulist(int mode, int left, int top, int width, int *cur, int *bar
if
(
mode
&
WIN_PUT
)
bline
|=
BL_PUT
;
bottomline
(
bline
);
while
(
opts
<
max_opts
&&
opts
<
MAX_OPTS
)
if
(
option
[
opts
][
0
]
==
0
)
if
(
option
[
opts
]
==
NULL
||
option
[
opts
][
0
]
==
0
)
break
;
else
opts
++
;
if
(
mode
&
WIN_XTR
&&
opts
<
max_opts
&&
opts
<
MAX_OPTS
)
...
...
src/uifc/uifcd.c
View file @
c9d2ed80
...
...
@@ -135,7 +135,7 @@ int ulist(int mode, int left, int top, int width, int *cur, int *bar
/* Count number of menu options */
for
(
cnt
=
0
;
cnt
<
MAX_OPTS
;
cnt
++
)
if
(
option
[
cnt
][
0
]
==
0
)
if
(
option
[
cnt
]
==
NULL
||
option
[
cnt
][
0
]
==
0
)
break
;
options
=
cnt
;
freecnt
=
cnt
+
5
;
/* Add, Delete, Copy, Paste, At End */
...
...
src/uifc/uifcx.c
View file @
c9d2ed80
...
...
@@ -200,7 +200,7 @@ int ulist(int mode, int left, int top, int width, int *cur, int *bar
int
lines
;
for
(
opts
=
0
;
opts
<
MAX_OPTS
;
opts
++
)
if
(
option
[
opts
][
0
]
==
0
)
if
(
option
[
opts
]
==
NULL
||
option
[
opts
][
0
]
==
0
)
break
;
if
((
*
cur
)
>=
opts
)
...
...
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