Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libplist
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pwn
libplist
Commits
d21c7d4a
Commit
d21c7d4a
authored
Oct 17, 2009
by
Jonathan Beck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes for dates.
parent
a2588b4b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
Date.cpp
src/Date.cpp
+2
-1
plist.c
src/plist.c
+2
-2
No files found.
src/Date.cpp
View file @
d21c7d4a
...
@@ -68,7 +68,8 @@ timeval Date::GetValue()
...
@@ -68,7 +68,8 @@ timeval Date::GetValue()
int32_t
tv_sec
=
0
;
int32_t
tv_sec
=
0
;
int32_t
tv_usec
=
0
;
int32_t
tv_usec
=
0
;
plist_get_date_val
(
_node
,
&
tv_sec
,
&
tv_usec
);
plist_get_date_val
(
_node
,
&
tv_sec
,
&
tv_usec
);
return
{
tv_sec
,
tv_usec
};
timeval
t
=
{
tv_sec
,
tv_usec
};
return
t
;
}
}
};
};
src/plist.c
View file @
d21c7d4a
...
@@ -472,8 +472,8 @@ static void plist_get_type_and_value(plist_t node, plist_type * type, void *valu
...
@@ -472,8 +472,8 @@ static void plist_get_type_and_value(plist_t node, plist_type * type, void *valu
break
;
break
;
case
PLIST_DATE
:
case
PLIST_DATE
:
//exception : here we use memory on the stack since it is just a temporary buffer
//exception : here we use memory on the stack since it is just a temporary buffer
(
*
((
GTimeVal
**
)
value
)
)
->
tv_sec
=
data
->
timeval
.
tv_sec
;
(
(
GTimeVal
*
)
value
)
->
tv_sec
=
data
->
timeval
.
tv_sec
;
(
*
((
GTimeVal
**
)
value
)
)
->
tv_usec
=
data
->
timeval
.
tv_usec
;
(
(
GTimeVal
*
)
value
)
->
tv_usec
=
data
->
timeval
.
tv_usec
;
break
;
break
;
case
PLIST_ARRAY
:
case
PLIST_ARRAY
:
case
PLIST_DICT
:
case
PLIST_DICT
:
...
...
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