# HG changeset patch # User Me # Date 1289762004 28800 # Node ID bac20745c52ef59e6cb7b3dbba6f06ba76ea7d32 # Parent e072db5aa783d4ebb907ac46802d0e3183323699 Nov 14 Vers -- fixed strcpy to VMS__strDup diff -r e072db5aa783 -r bac20745c52e PrivateHash.c --- a/PrivateHash.c Tue Nov 02 16:45:50 2010 -0700 +++ b/PrivateHash.c Sun Nov 14 11:13:24 2010 -0800 @@ -114,9 +114,7 @@ { hashIdx = hashThisKey( key, table->tableSz ); hashEntry = (HashEntry*) VMS__malloc( sizeof( HashEntry ) ); if( hashEntry == NULL ) return 0; - hashEntry->key = VMS__malloc( strlen(key) ); - if( hashEntry->key == NULL ) return 0; - strcpy( hashEntry->key, key ); + hashEntry->key = VMS__strDup( key ); hashEntry->next = (table->entries)[hashIdx]; (table->entries)[hashIdx] = hashEntry; table->numEntries += 1;