Auto merge of #28407 - mmcco:master, r=alexcrichton

…e len is actually one more than the length of argv[0]. However, this is precarious and should probably be replaced with more robust logic.
This commit is contained in:
bors 2015-09-15 13:18:13 +00:00
commit 3887ca27f1
1 changed files with 0 additions and 1 deletions

View File

@ -328,7 +328,6 @@ int rust_get_argv_zero(void* p, size_t* sz)
return -1;
}
memset(p, 0, len);
memcpy(p, argv[0], len);
free(argv);
return 0;