s3: Fix the build, NAME_MAX not universally available
authorVolker Lendecke <vl@samba.org>
Mon, 20 Jun 2011 10:09:06 +0000 (12:09 +0200)
committerVolker Lendecke <vlendec@samba.org>
Mon, 20 Jun 2011 11:45:21 +0000 (13:45 +0200)
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Jun 20 13:45:21 CEST 2011 on sn-devel-104

source3/modules/vfs_shadow_copy2.c

index 1ed828b746a0485f09f753fc6a3016e4079ec9ca..ca33b6d34442ff41a5e97638e70fa6bd251f6bb5 100644 (file)
@@ -144,7 +144,7 @@ static char *shadow_copy2_insert_string(TALLOC_CTX *mem_ctx,
                                        time_t snapshot)
 {
        struct tm snap_tm;
-       char gmt[NAME_MAX+1];
+       fstring gmt;
        size_t gmt_len;
 
        if (localtime_r(&snapshot, &snap_tm) == 0) {