mirror of
git://git.gnupg.org/gnupg.git
synced 2024-11-10 21:38:50 +01:00
tests:gpgscm:w32: Fix for GetTempPath.
* tests/gpgscm/ffi.c (do_get_temp_path): Remove the last backslash. -- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
44cbe6fbc0
commit
4ea7f03c10
@ -353,6 +353,11 @@ do_get_temp_path (scheme *sc, pointer args)
|
||||
#ifdef HAVE_W32_SYSTEM
|
||||
if (GetTempPath (MAX_PATH+1, buffer) == 0)
|
||||
FFI_RETURN_STRING (sc, "/temp");
|
||||
else
|
||||
{
|
||||
size_t len = strlen (buffer);
|
||||
buffer[len-1] = 0;
|
||||
}
|
||||
FFI_RETURN_STRING (sc, buffer);
|
||||
#else
|
||||
FFI_RETURN_STRING (sc, "/tmp");
|
||||
|
Loading…
Reference in New Issue
Block a user