You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@celix.apache.org by GitBox <gi...@apache.org> on 2022/12/30 23:27:15 UTC

[GitHub] [celix] pnoltes commented on pull request #459: Replace sprintf usage with snprintf or asprintf

pnoltes commented on PR #459:
URL: https://github.com/apache/celix/pull/459#issuecomment-1368122339

   The PR has become a bit bigger than anticipated.
   
   The original metadata encoding for pubsub protocol was reusing the provided buffer when calling encodeMetadata. 
   I kept this buffer reusing behavior, but refactored to code to extend the buffer if needed and also return a metadata content length next to the buffer size. The metadata content length can then be used to ensure pubsub only needs to send the minimal bytes needed for the metadata. 
   
   Also quite some files where updated for the -Wformat warning and usage of __attribute__((format(printf,m,n))).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@celix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org