Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
c0c09ac8
Commit
c0c09ac8
authored
Apr 03, 2004
by
Cyril Deguet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ustring.cpp: fixed the operator= (the trailing '\0' was not copied,
leading to invalid memory reads)
parent
0876b490
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/gui/skins2/utils/ustring.cpp
modules/gui/skins2/utils/ustring.cpp
+2
-2
No files found.
modules/gui/skins2/utils/ustring.cpp
View file @
c0c09ac8
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* ustring.cpp
* ustring.cpp
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id
: ustring.cpp,v 1.1 2004/01/03 23:31:34 asmax Exp
$
* $Id$
*
*
* Authors: Cyril Deguet <asmax@via.ecp.fr>
* Authors: Cyril Deguet <asmax@via.ecp.fr>
* Olivier Teulière <ipkiss@via.ecp.fr>
* Olivier Teulière <ipkiss@via.ecp.fr>
...
@@ -204,7 +204,7 @@ void UString::operator =( const UString &rOther )
...
@@ -204,7 +204,7 @@ void UString::operator =( const UString &rOther )
m_length
=
rOther
.
m_length
;
m_length
=
rOther
.
m_length
;
delete
[]
m_pString
;
delete
[]
m_pString
;
m_pString
=
new
uint32_t
[
size
()
+
1
];
m_pString
=
new
uint32_t
[
size
()
+
1
];
for
(
uint32_t
i
=
0
;
i
<
size
();
i
++
)
for
(
uint32_t
i
=
0
;
i
<
=
size
();
i
++
)
{
{
m_pString
[
i
]
=
rOther
.
m_pString
[
i
];
m_pString
[
i
]
=
rOther
.
m_pString
[
i
];
}
}
...
...
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