1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

VMS fixes

This commit is contained in:
Werner Koch 2010-10-10 09:53:02 +00:00
parent 5b99bbc88e
commit 41f5b0a402
4 changed files with 27 additions and 7 deletions

View file

@ -1182,11 +1182,11 @@ create_tmp_file (const char *template,
strcpy (stpcpy(tmpfname, template), EXTSEP_S "tmp");
}
# else /* Posix file names */
bakfname = xmalloc (strlen( template ) + 2);
strcpy (stpcpy (bakfname,template),"~");
bakfname = xmalloc (strlen (template) + sizeof (GNUPG_BAK_SFX) + 1);
strcpy (stpcpy (bakfname, template), GNUPG_BAK_SFX);
tmpfname = xmalloc (strlen( template ) + 5);
strcpy (stpcpy(tmpfname,template), EXTSEP_S "tmp");
tmpfname = xmalloc (strlen (template) + sizeof (GNUPG_TMP_SFX) + 1 );
strcpy (stpcpy(tmpfname, template), GNUPG_TMP_SFX);
# endif /* Posix filename */
/* Create the temp file with limited access */