mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Better take the length of SKELEXT into account
This commit is contained in:
parent
452e415784
commit
45accef52a
2 changed files with 4 additions and 2 deletions
|
@ -308,7 +308,8 @@ copy_options_file( const char *destdir )
|
|||
if( opt.dry_run )
|
||||
return;
|
||||
|
||||
fname = xmalloc ( strlen(datadir) + strlen(destdir) + 15 );
|
||||
fname = xmalloc ( strlen(datadir) + strlen(destdir)
|
||||
strlen (SKELEXT) + 15 );
|
||||
strcpy(stpcpy(fname, datadir), DIRSEP_S "gpg-conf" SKELEXT );
|
||||
src = fopen( fname, "r" );
|
||||
if( !src ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue