FreeTDM: Remove trailing whitespace at end of ftdm_{copy,set}_string()

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
This commit is contained in:
Stefan Knoblich 2012-09-22 01:05:51 +02:00
parent bed72bff7a
commit 90691b36c4
1 changed files with 2 additions and 2 deletions

View File

@ -64,10 +64,10 @@ typedef uint64_t ftdm_time_t;
#endif
/*! \brief strncpy replacement */
#define ftdm_copy_string(x,y,z) strncpy(x, y, z - 1)
#define ftdm_copy_string(x,y,z) strncpy(x, y, z - 1)
/*! \brief strncpy into a fixed-length buffer */
#define ftdm_set_string(x,y) strncpy(x, y, sizeof(x)-1)
#define ftdm_set_string(x,y) strncpy(x, y, sizeof(x)-1)
/*! \brief check for null or zero length string buffer */
#define ftdm_strlen_zero(s) (!s || *s == '\0')