diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2017-06-27 16:30:21 +0200 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2017-08-31 09:12:32 +0100 |
commit | ac96f9c265bae2d827e1933a6713d86920c0f159 (patch) | |
tree | c29c04e8c46139696915742624d3ffd56b42349b | |
parent | 10ed03c6f54f3e6171f948243637462691f02e54 (diff) | |
download | busybox-w32-ac96f9c265bae2d827e1933a6713d86920c0f159.tar.gz busybox-w32-ac96f9c265bae2d827e1933a6713d86920c0f159.tar.bz2 busybox-w32-ac96f9c265bae2d827e1933a6713d86920c0f159.zip |
ash: avoid assumption about sizeof(long) == sizeof(void *)
This change fixes a minor bug in eea918c5e (win32: ash:
spawn_forkshell(), 2010-04-14).
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Ron Yorston <rmy@pobox.com>
-rw-r--r-- | shell/ash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c index e47836d70..5fd3bfb23 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -14711,7 +14711,7 @@ spawn_forkshell(struct job *jp, struct forkshell *fs, int mode) | |||
14711 | intptr_t ret; | 14711 | intptr_t ret; |
14712 | 14712 | ||
14713 | new = forkshell_prepare(fs); | 14713 | new = forkshell_prepare(fs); |
14714 | sprintf(buf, "%x", (unsigned int)new->hMapFile); | 14714 | sprintf(buf, "%p", new->hMapFile); |
14715 | argv[2] = buf; | 14715 | argv[2] = buf; |
14716 | ret = mingw_spawn_proc(argv); | 14716 | ret = mingw_spawn_proc(argv); |
14717 | CloseHandle(new->hMapFile); | 14717 | CloseHandle(new->hMapFile); |