Revision 1a5e4fd8 libavutil/log.c

View differences:

libavutil/log.c
26 26

  
27 27
#include <unistd.h>
28 28
#include <stdlib.h>
29
#include "avstring.h"
29 30
#include "avutil.h"
30 31
#include "log.h"
31 32

  
......
120 121
        count=0;
121 122
    }
122 123
    colored_fputs(av_clip(level>>3, 0, 6), line);
123
    strncpy(prev, line, sizeof line);
124
    av_strlcpy(prev, line, sizeof line);
124 125
}
125 126

  
126 127
static void (*av_log_callback)(void*, int, const char*, va_list) = av_log_default_callback;

Also available in: Unified diff