Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
a5f68b3c
Commit
a5f68b3c
authored
Sep 07, 2008
by
Eric Wong
Committed by
Max Kellermann
Sep 07, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tag: oops, of course items is now ** and not *
Gah, it seems like doing sizeof here either way is error prone. Too easy to leave out a '*' character we can forget.
parent
3c4de5b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tag.c
src/tag.c
+2
-2
No files found.
src/tag.c
View file @
a5f68b3c
...
...
@@ -57,7 +57,7 @@ mpd_sint8 ignoreTagItems[TAG_NUM_OF_ITEM_TYPES];
static
size_t
items_size
(
const
struct
tag
*
tag
)
{
return
(
tag
->
numOfItems
*
sizeof
(
struct
tag_item
));
return
(
tag
->
numOfItems
*
sizeof
(
struct
tag_item
*
));
}
void
tag_lib_init
(
void
)
...
...
@@ -427,7 +427,7 @@ static void appendToTagItems(struct tag *tag, enum tag_type type,
tag
->
items
=
xmalloc
(
items_size
(
tag
));
memcpy
(
tag
->
items
,
bulk
.
items
,
items_size
(
tag
)
-
sizeof
(
struct
tag_item
));
items_size
(
tag
)
-
sizeof
(
struct
tag_item
*
));
}
pthread_mutex_lock
(
&
tag_pool_lock
);
...
...
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