~ubuntu-branches/ubuntu/hardy/gnupg/hardy-updates

« back to all changes in this revision

Viewing changes to g10/exec.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2006-11-03 09:18:26 UTC
  • mto: This revision was merged to the branch mainline in revision 11.
  • Revision ID: james.westby@ubuntu.com-20061103091826-89kwl8tk1xypbmtk
Tags: upstream-1.4.5
ImportĀ upstreamĀ versionĀ 1.4.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
129
129
  if(tmp==NULL)
130
130
    {
131
131
#if defined (_WIN32)
132
 
      tmp=xmalloc(256);
133
 
      if(GetTempPath(256,tmp)==0)
 
132
      int err;
 
133
 
 
134
      tmp=xmalloc(MAX_PATH);
 
135
      err=GetTempPath(MAX_PATH,tmp);
 
136
      if(err==0 || err>MAX_PATH)
134
137
        strcpy(tmp,"c:\\windows\\temp");
135
138
      else
136
139
        {