Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
07329b0a
Commit
07329b0a
authored
Jun 17, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sn?printf -> strl?cpy
parent
6fce72c7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
29 deletions
+11
-29
modules/gui/ncurses.c
modules/gui/ncurses.c
+1
-1
modules/misc/notify/notify.c
modules/misc/notify/notify.c
+1
-1
src/text/strings.c
src/text/strings.c
+9
-27
No files found.
modules/gui/ncurses.c
View file @
07329b0a
...
...
@@ -1472,7 +1472,7 @@ static void Redraw( intf_thread_t *p_intf, time_t *t_last_refresh )
memset
(
psz_title
,
' '
,
mid
);
if
(
p_sys
->
b_color
)
wcolor_set
(
p_sys
->
w
,
C_TITLE
,
NULL
);
s
nprintf
(
&
psz_title
[
mid
],
i_size
,
"VLC media player "
PACKAGE_VERSION
);
s
trlcpy
(
&
psz_title
[
mid
],
"VLC media player "
PACKAGE_VERSION
,
i_size
);
mvnprintw
(
y
,
0
,
COLS
,
"%s"
,
psz_title
);
attroff
(
A_REVERSE
);
y
+=
2
;
...
...
modules/misc/notify/notify.c
View file @
07329b0a
...
...
@@ -251,7 +251,7 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
}
else
{
s
nprintf
(
&
psz_notify
[
i_notify
],
6
,
"&"
);
s
trcpy
(
&
psz_notify
[
i_notify
]
,
"&"
);
i_notify
+=
4
;
}
i_notify
++
;
...
...
src/text/strings.c
View file @
07329b0a
...
...
@@ -700,9 +700,7 @@ char *str_format_meta( vlc_object_t *p_object, const char *string )
vlc_mutex_unlock
(
&
p_item
->
p_stats
->
lock
);
}
else
{
sprintf
(
buf
,
b_empty_if_na
?
""
:
"-"
);
}
strcpy
(
buf
,
b_empty_if_na
?
""
:
"-"
);
INSERT_STRING_NO_FREE
(
buf
);
break
;
case
'g'
:
...
...
@@ -770,9 +768,7 @@ char *str_format_meta( vlc_object_t *p_object, const char *string )
var_GetInteger
(
p_input
,
"bit-rate"
)
/
1000
);
}
else
{
sprintf
(
buf
,
b_empty_if_na
?
""
:
"-"
);
}
strcpy
(
buf
,
b_empty_if_na
?
""
:
"-"
);
INSERT_STRING_NO_FREE
(
buf
);
break
;
case
'C'
:
...
...
@@ -782,9 +778,7 @@ char *str_format_meta( vlc_object_t *p_object, const char *string )
var_GetInteger
(
p_input
,
"chapter"
)
);
}
else
{
sprintf
(
buf
,
b_empty_if_na
?
""
:
"-"
);
}
strcpy
(
buf
,
b_empty_if_na
?
""
:
"-"
);
INSERT_STRING_NO_FREE
(
buf
);
break
;
case
'D'
:
...
...
@@ -794,9 +788,7 @@ char *str_format_meta( vlc_object_t *p_object, const char *string )
format_duration
(
buf
,
sizeof
(
buf
),
i_duration
);
}
else
{
snprintf
(
buf
,
10
,
b_empty_if_na
?
""
:
"--:--:--"
);
}
strcpy
(
buf
,
b_empty_if_na
?
""
:
"--:--:--"
);
INSERT_STRING_NO_FREE
(
buf
);
break
;
case
'F'
:
...
...
@@ -812,9 +804,7 @@ char *str_format_meta( vlc_object_t *p_object, const char *string )
var_GetInteger
(
p_input
,
"title"
)
);
}
else
{
sprintf
(
buf
,
b_empty_if_na
?
""
:
"-"
);
}
strcpy
(
buf
,
b_empty_if_na
?
""
:
"-"
);
INSERT_STRING_NO_FREE
(
buf
);
break
;
case
'L'
:
...
...
@@ -826,9 +816,7 @@ char *str_format_meta( vlc_object_t *p_object, const char *string )
i_duration
-
i_time
);
}
else
{
snprintf
(
buf
,
10
,
b_empty_if_na
?
""
:
"--:--:--"
);
}
strcpy
(
buf
,
b_empty_if_na
?
""
:
"--:--:--"
);
INSERT_STRING_NO_FREE
(
buf
);
break
;
case
'N'
:
...
...
@@ -867,9 +855,7 @@ char *str_format_meta( vlc_object_t *p_object, const char *string )
snprintf
(
buf
,
10
,
"%.3f"
,
f
);
}
else
{
sprintf
(
buf
,
b_empty_if_na
?
""
:
"-"
);
}
strcpy
(
buf
,
b_empty_if_na
?
""
:
"-"
);
INSERT_STRING_NO_FREE
(
buf
);
break
;
case
'S'
:
...
...
@@ -879,9 +865,7 @@ char *str_format_meta( vlc_object_t *p_object, const char *string )
snprintf
(
buf
,
10
,
"%d.%d"
,
r
/
1000
,
(
r
/
100
)
%
10
);
}
else
{
sprintf
(
buf
,
b_empty_if_na
?
""
:
"-"
);
}
strcpy
(
buf
,
b_empty_if_na
?
""
:
"-"
);
INSERT_STRING_NO_FREE
(
buf
);
break
;
case
'T'
:
...
...
@@ -891,9 +875,7 @@ char *str_format_meta( vlc_object_t *p_object, const char *string )
format_duration
(
buf
,
sizeof
(
buf
),
i_time
);
}
else
{
snprintf
(
buf
,
10
,
b_empty_if_na
?
""
:
"--:--:--"
);
}
strcpy
(
buf
,
b_empty_if_na
?
""
:
"--:--:--"
);
INSERT_STRING_NO_FREE
(
buf
);
break
;
case
'U'
:
...
...
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