From ac96f9c265bae2d827e1933a6713d86920c0f159 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Tue, 27 Jun 2017 16:30:21 +0200 Subject: 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 Signed-off-by: Ron Yorston --- shell/ash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) intptr_t ret; new = forkshell_prepare(fs); - sprintf(buf, "%x", (unsigned int)new->hMapFile); + sprintf(buf, "%p", new->hMapFile); argv[2] = buf; ret = mingw_spawn_proc(argv); CloseHandle(new->hMapFile); -- cgit v1.2.3-55-g6feb