[CDRIVER-44] use strdup in place of malloc+strcpy Created: 17/Feb/11  Updated: 03/May/17  Resolved: 17/Feb/11

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Trivial - P5
Reporter: Jim Meyering Assignee: Kyle Banker
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

latest from git, fedora 14, x86_64


Attachments: File 0003-use-strdup-in-place-of-malloc-strcpy.patch    
Issue Links:
Duplicate
duplicates CDRIVER-43 avoid NULL-deref (gridfs_store_stream... Closed
Backwards Compatibility: Fully Compatible

 Description   

This replaces two more uses of malloc+strcpy with more succinct strdup uses.



 Comments   
Comment by Kyle Banker [ 17/Feb/11 ]

Going to use bson_malloc + strcpy for now for consistent malloc error checking.

Generated at Wed Feb 07 21:08:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.