OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3fab1f
)
rtmp: Use av_strlcat instead of strncat
author
Martin Storsjö
<martin@martin.st>
Mon, 5 Nov 2012 09:01:24 +0000
(11:01 +0200)
committer
Martin Storsjö
<martin@martin.st>
Mon, 5 Nov 2012 13:37:09 +0000
(15:37 +0200)
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtmpproto.c
patch
|
blob
|
history
diff --git
a/libavformat/rtmpproto.c
b/libavformat/rtmpproto.c
index
3ab2e57
..
8924fb3
100644
(file)
--- a/
libavformat/rtmpproto.c
+++ b/
libavformat/rtmpproto.c
@@
-2188,7
+2188,7
@@
static int rtmp_open(URLContext *s, const char *uri, int flags)
} else {
rt->playpath[0] = 0;
}
-
strncat(rt->playpath, fname, PLAYPATH_MAX_LENGTH - 5
);
+
av_strlcat(rt->playpath, fname, PLAYPATH_MAX_LENGTH
);
}
if (!rt->tcurl) {