(trunk libT) fix bencode.c cross-compile error on arm-based NAS reported by nahkiss. This bug was introduced in a patch to fix #3172 and was added to trunk with r10549 and 1.9x/ with r10549

This commit is contained in:
Charles Kerr 2010-05-05 16:03:33 +00:00
parent cf3ccb3385
commit 5d272161ed
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,6 @@
#include <assert.h>
#include <ctype.h> /* isdigit() */
#include <errno.h>
#include <limits.h> /* PATH_MAX */
#include <math.h> /* fabs() */
#include <stdio.h>
#include <stdlib.h> /* realpath() */
@ -32,6 +31,7 @@
#include "bencode.h"
#include "json.h"
#include "list.h"
#include "platform.h" /* MAX_PATH_LEN */
#include "ptrarray.h"
#include "utils.h" /* tr_new(), tr_free() */
@ -1621,7 +1621,7 @@ tr_bencToFile( const tr_benc * top, tr_fmt_mode mode, const char * filename )
char * tmp;
int fd;
int err = 0;
char buf[PATH_MAX];
char buf[MAX_PATH_LENGTH];
/* follow symlinks to find the "real" file, to make sure the temporary
* we build with mkstemp() is created on the right partition */