Need brackets around macro args. Spotted by Patrick Welche <prlw1@newn.cam.ac.uk>.
authorJeremy Allison <jra@samba.org>
Wed, 4 Dec 2002 18:45:25 +0000 (18:45 +0000)
committerJeremy Allison <jra@samba.org>
Wed, 4 Dec 2002 18:45:25 +0000 (18:45 +0000)
Jeremy.
(This used to be commit 2b9d35cf3f91e9488a55e0a73150d4c18b998afe)

source3/smbd/trans2.c

index cd15a8f6fd1eb1c899ae6c80c9bebec3cac81910..d83596d68fc8aa83eaf5909a5c8732f0b8d12ad3 100644 (file)
@@ -29,7 +29,7 @@ extern fstring local_machine;
 extern int global_oplock_break;
 extern uint32 global_client_caps;
 
-#define get_file_size(sbuf) (sbuf.st_size)
+#define get_file_size(sbuf) ((sbuf).st_size)
 
 /* given a stat buffer return the allocated size on disk, taking into
    account sparse files */