[ruby-cvs:64355] nobu:r57189 (trunk): get rid of strcpy

nobu at ruby-lang.org nobu at ruby-lang.org
Mon Dec 26 18:28:46 JST 2016


nobu	2016-12-26 18:28:46 +0900 (Mon, 26 Dec 2016)

  New Revision: 57189

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57189

  Log:
    get rid of strcpy
    
    * addr2line.c (follow_debuglink): insert global_debug_dir by using
      memmove instead of copying to temporary buffer.
    
    * dln.c (dln_load): use memcpy with the known length instead of
      strcpy.
    
    * gc.c (rb_gc_unprotect_logging): use strdup instead of malloc and
      strcpy.

  Modified files:
    trunk/addr2line.c
    trunk/dln.c
    trunk/gc.c


More information about the ruby-cvs mailing list