xstrncpy saga
authorNelson Ferreira <nelson.ferreira@ieee.org>
Fri, 2 Mar 2012 21:12:41 +0000 (16:12 -0500)
committerNelson Ferreira <nelson.ferreira@ieee.org>
Fri, 2 Mar 2012 21:12:41 +0000 (16:12 -0500)
* lib-src/etags.c (xstrncpy): cosmetic changes to xstrncpy macro

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
lib-src/etags.c

index 15bad19..3c787fc 100644 (file)
@@ -233,7 +233,12 @@ extern int optind, opterr;
 
 #define bool int
 
-#define xstrncpy(d_,s_,l_) do { char* dst_=d_; dst_[0]='\0'; strncat((dst_),(s_),(l_)-1); } while(0)
+#define xstrncpy(d_,s_,l_)                     \
+       do {                                    \
+               char* dst_=d_;                  \
+               dst_[0]='\0';                   \
+               strncat((dst_),(s_),(l_)-1);    \
+       } while(0)
 
 typedef void Lang_function __P((FILE *));