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
Icecast-Server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
94
Issues
94
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
External Wiki
External Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
Icecast-Server
Commits
be75324e
Commit
be75324e
authored
Aug 14, 2007
by
Karl Heyes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update for win32 build. Allow for more source stats and add boundary check
svn path=/icecast/trunk/icecast/; revision=13547
parent
f1c6cf9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
win32/Icecast2winDlg.cpp
win32/Icecast2winDlg.cpp
+6
-2
No files found.
win32/Icecast2winDlg.cpp
View file @
be75324e
...
...
@@ -43,7 +43,7 @@ CString gConfigurationSave;
char
gTitleSource
[
1024
]
=
""
;
char
gTitleName
[
1024
]
=
""
;
#define MAXSTATSPERSOURCE
3
0
#define MAXSTATSPERSOURCE
6
0
#define MAXSOURCES 1024
typedef
struct
tagElement
{
...
...
@@ -472,6 +472,8 @@ void AddUpdateStatistic(int sourceIndex, char *name, char *value)
}
}
int
numStats
=
gStats
[
sourceIndex
].
numStats
;
if
(
numStats
>=
MAXSTATSPERSOURCE
)
return
;
/* If we get here, we haven't found the stat, so add it */
gStats
[
sourceIndex
].
stats
[
numStats
].
name
=
name
;
gStats
[
sourceIndex
].
stats
[
numStats
].
value
=
value
;
...
...
@@ -488,6 +490,8 @@ int GetSourceIndex(char *sourceName)
return
i
;
}
}
if
(
numMainStats
>=
MAXSOURCES
)
return
0
;
/* This means we haven't seen the source, so lets add it */
numMainStats
++
;
gStats
[
numMainStats
].
source
=
sourceName
;
...
...
@@ -537,7 +541,7 @@ void StartStats(void *dummy)
xmlDocPtr
doc
;
stats_get_xml
(
&
doc
,
0
);
stats_get_xml
(
&
doc
,
0
,
NULL
);
xmlNodePtr
cur
;
cur
=
xmlDocGetRootElement
(
doc
);
...
...
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