[MPlayer-dev-eng] [PATCH] gstrcat error handling

Chris White webmaster at securesystem.info
Fri Jul 30 04:42:36 CEST 2004


The TODO said it was needed, so I took a crack at it.

changed a few !pointer to pointer == NULL's, made sure that malloc was 
able to allocate memory.

Took out:

tmp=malloc( strlen( src ) + 1 ); strcpy( tmp,src ); }

not quite sure on the functionality of that.

First patch for mplayer, so comments, suggestions, "what on earth are 
you thinking!?"'s are welcome :).

Chris White
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gstrcat-error-handling.patch
Type: text/x-patch
Size: 1129 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20040730/b31e5219/attachment.bin>


More information about the MPlayer-dev-eng mailing list