summaryrefslogtreecommitdiff
path: root/libavformat/cutils.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/cutils.c')
-rw-r--r--libavformat/cutils.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/cutils.c b/libavformat/cutils.c
index 55257a5a01..8580106717 100644
--- a/libavformat/cutils.c
+++ b/libavformat/cutils.c
@@ -86,8 +86,7 @@ void pstrcpy(char *buf, int buf_size, const char *str)
/* strcat and truncate. */
char *pstrcat(char *buf, int buf_size, const char *s)
{
- int len;
- len = strlen(buf);
+ int len = strlen(buf);
if (len < buf_size)
pstrcpy(buf + len, buf_size - len, s);
return buf;