~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/mf_tempfile.cc

  • Committer: Brian Aker
  • Date: 2008-11-22 00:57:28 UTC
  • Revision ID: brian@tangent.org-20081122005728-iratrqrj5o6jbf6d
Fix, partial, for Sun Studio.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
   along with this program; if not, write to the Free Software
14
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
 
 
16
#include <stdio.h>
16
17
#include "mysys_priv.h"
17
18
#include <mystrings/m_string.h>
18
19
#include "my_static.h"
77
78
                                    sizeof(prefix_buff)-7),"XXXXXX") -
78
79
                     prefix_buff);
79
80
    if (!dir && ! (dir =getenv("TMPDIR")))
80
 
      dir=P_tmpdir;
 
81
      dir= P_tmpdir;
81
82
    if (strlen(dir)+ pfx_len > FN_REFLEN-2)
82
83
    {
83
84
      errno=my_errno= ENAMETOOLONG;