зеркало из https://github.com/github/ruby.git
* win32/win32.c: get rid of STRNDUPA(). It's dangerous API.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
2529d2c38d
Коммит
8d397b77ea
|
@ -1,3 +1,7 @@
|
|||
Thu Jan 27 21:41:47 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* win32/win32.c: get rid of STRNDUPA(). It's dangerous API.
|
||||
|
||||
Thu Jan 27 21:31:57 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* win32/win32.c (rb_w32_aspawn): get rid of too huge alloca().
|
||||
|
|
|
@ -966,9 +966,6 @@ join_argv(char *cmd, char *const *argv, BOOL escape)
|
|||
# define MAXPATHLEN 512
|
||||
#endif
|
||||
|
||||
#define STRNDUPA(ptr, src, len) \
|
||||
(((char *)memcpy(((ptr) = ALLOCA_N(char, (len) + 1)), (src), (len)))[len] = 0)
|
||||
|
||||
#define STRNDUPV(ptr, v, src, len) \
|
||||
(((char *)memcpy(((ptr) = ALLOCV((v), (len) + 1)), (src), (len)))[len] = 0)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче