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
892b9083
Commit
892b9083
authored
Aug 18, 2015
by
rswindell
Browse files
Fix cosmetic error introduced in previous commit: use the correct attribute
code for the size/credit value.
parent
fe36e759
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/sbbs3/listfile.cpp
src/sbbs3/listfile.cpp
+3
-3
No files found.
src/sbbs3/listfile.cpp
View file @
892b9083
...
...
@@ -434,6 +434,7 @@ bool sbbs_t::listfile(const char *fname, const char *buf, uint dirnum
int
i
,
j
;
ulong
cdt
;
off_t
size
;
int
size_attr
=
clr_filecdt
;
if
(
buf
[
F_MISC
]
!=
ETX
&&
(
buf
[
F_MISC
]
-
' '
)
&
FM_EXTDESC
&&
useron
.
misc
&
EXTDESC
)
{
getextdesc
(
&
cfg
,
dirnum
,
datoffset
,
ext
);
...
...
@@ -466,13 +467,12 @@ bool sbbs_t::listfile(const char *fname, const char *buf, uint dirnum
if
(
cfg
.
dir
[
dirnum
]
->
misc
&
DIR_FCHK
)
{
if
(
!
fexistcase
(
path
))
{
exist
=
0
;
attr
(
cfg
.
color
[
clr_err
])
;
size_attr
=
clr_err
;
}
else
if
((
cfg
.
dir
[
dirnum
]
->
misc
&
DIR_FREE
)
&&
(
size
=
flength
(
path
))
>=
0
)
cdt
=
size
;
}
else
attr
(
cfg
.
color
[
clr_filecdt
]);
attr
(
cfg
.
color
[
size_attr
]);
if
(
useron
.
misc
&
BATCHFLAG
)
{
if
(
!
cdt
&&
!
(
cfg
.
dir
[
dirnum
]
->
misc
&
DIR_FREE
))
{
attr
(
curatr
^
(
HIGH
|
BLINK
));
...
...
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