Project

General

Profile

« Previous | Next » 

Revision 8e0601b7

Added by nobu (Nobuyoshi Nakada) almost 9 years ago

win32/file.c: use ALLOC_N

  • win32/file.c (home_dir, replace_to_long_name): use ALLOC_N
    instead of casted xmalloc with multiplication.

win32/file.c (rb_file_expand_path_internal): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e