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 <vl@samba.org>
Tue, 9 Aug 2011 14:57:51 +0000 (16:57 +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 57b1eff91129adcf527845785e40d547b0703536..e4130e32cc98004f218f57d63313f93763bd0e3d 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) {