-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
utils: add janus_strlcat helper #2792
Conversation
dee572e
to
1683d9f
Compare
N.B. this can take a backseat to #2793 (I'll rebase it after that gets merged) but I think would be useful for the rest of the codebase. |
I think it makes sense to merge yours first (in order to check when truncation is indeed the cause of the issue), and then expand it with @JanFellner's patch to make it extend the buffer rather than fail (and maybe print the error you have now in case the reallocation fails, for instance). |
Works now on my side. So the buffer size was really the issue. |
Sure just wanted to make sure I wasn't scooping @JanFellner's work but this should be a lower impact/risk change. |
1683d9f
to
f493291
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from a tiny code-style nit (I know, I'm the worst 😆 ), this looks like a good fence to me. I already know it will cause me more than a little headache when re-aligning multistream (it will likely cause many conflicts), but that's indeed needed. I'll make a couple of tests, then merge and address the multistream conflicts so that we can start addressing the SDP size there.
This will log an error if the output is truncated.
f493291
to
1dbbcb5
Compare
Thanks for the quick fix! Merging then, and heading down the multistream merge conflicts hole... |
This will log an error if the output is truncated.