Found-by: Leo Izen
Unified · Split
| @@ -70,7 +70,7 @@ int ff_match_url_ext(const char *url, const char *extensions) · 69 unmodified lines | ||
| 70 | 70 | return 0; |
| 71 | 71 | if (uc.query - ext > sizeof(scratchpad)) |
| 72 | 72 | return AVERROR(ENOMEM); //not enough memory in our scratchpad |
| 73 | − av_strlcpy(scratchpad, ext + 1, FFMIN(sizeof(scratchpad), uc.query - ext)); | |
| 73 | + av_strlcpy(scratchpad, ext + 1, uc.query - ext); | |
| 74 | 74 | |
| 75 | 75 | return av_match_name(scratchpad, extensions); |
| 76 | 76 | } |