X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=windows%2Fwinjump.c;h=e5bca9358ead86ddb74a8c48c7b138afe9842486;hb=1de7240eb88fa24a8532ded116b4ec72dd213008;hp=eca5041a8dfa949da3e91321d494ffcf354c95c6;hpb=8bf5c1b31f1a1449d694e3604e293b0831eb2657;p=PuTTY.git diff --git a/windows/winjump.c b/windows/winjump.c index eca5041a..e5bca935 100644 --- a/windows/winjump.c +++ b/windows/winjump.c @@ -445,7 +445,8 @@ static IShellLink *make_shell_link(const char *appname, sessionname, "'", NULL); } else { assert(appname); - desc_string = dupprintf("Run %.*s", strcspn(appname, "."), appname); + desc_string = dupprintf("Run %.*s", + (int)strcspn(appname, "."), appname); } ret->lpVtbl->SetDescription(ret, desc_string); sfree(desc_string); @@ -461,7 +462,8 @@ static IShellLink *make_shell_link(const char *appname, pv.pszVal = dupstr(sessionname); } else { assert(appname); - pv.pszVal = dupprintf("Run %.*s", strcspn(appname, "."), appname); + pv.pszVal = dupprintf("Run %.*s", + (int)strcspn(appname, "."), appname); } pPS->lpVtbl->SetValue(pPS, &PKEY_Title, &pv); sfree(pv.pszVal);