comparison src/xs_title.c @ 717:c8648efaebba

Use proper != NULL comparision.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 09 Feb 2009 16:03:26 +0200
parents b0743dc9165d
children 50c30f624bbd
comparison
equal deleted inserted replaced
716:5f215b88d507 717:c8648efaebba
53 */ 53 */
54 #define VPUTCH(MCH) \ 54 #define VPUTCH(MCH) \
55 if (index < XS_BUF_SIZE) tmpBuf[index++] = MCH; 55 if (index < XS_BUF_SIZE) tmpBuf[index++] = MCH;
56 56
57 #define VPUTSTR(MSTR) { \ 57 #define VPUTSTR(MSTR) { \
58 if (MSTR) { \ 58 if (MSTR != NULL) { \
59 if ((index + strlen(MSTR) + 1) < XS_BUF_SIZE) {\ 59 if ((index + strlen(MSTR) + 1) < XS_BUF_SIZE) {\
60 strcpy(&tmpBuf[index], MSTR); \ 60 strcpy(&tmpBuf[index], MSTR); \
61 index += strlen(MSTR); \ 61 index += strlen(MSTR); \
62 } else \ 62 } else \
63 index = XS_BUF_SIZE; \ 63 index = XS_BUF_SIZE; \