diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2013-05-04 06:30:05 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2013-05-04 06:30:05 +0000 |
commit | 490e5821baf59cd07591e508d899a339c1c2e251 (patch) | |
tree | 733e9dff8ef288165a073c7561fd6c9c82883145 /src/httrack.h | |
parent | 75faaf7f11c1611f5b98b13b7d6f44c861f857d7 (diff) |
Fixed httrack.h macros (Sebastian Pipping)
Diffstat (limited to 'src/httrack.h')
-rw-r--r-- | src/httrack.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/httrack.h b/src/httrack.h index 8b049a1..ec4984e 100644 --- a/src/httrack.h +++ b/src/httrack.h @@ -103,7 +103,7 @@ extern FILE* ioinfo; /* protected strcat, strncat and strcpy - definitely useful */ #define strcatbuff(A, B) do { \ assertf( (A) != NULL ); \ - if ( ! (B) ) { assertf( 0 ); } \ + assertf( (B) != NULL ); \ if (htsMemoryFastXfr) { \ if (sizeof(A) != sizeof(char*)) { \ (A)[sizeof(A) - 1] = '\0'; \ @@ -129,7 +129,7 @@ extern FILE* ioinfo; } while(0) #define strncatbuff(A, B, N) do { \ assertf( (A) != NULL ); \ - if ( ! (B) ) { assertf( 0 ); } \ + assertf( (B) != NULL ); \ if (htsMemoryFastXfr) { \ if (sizeof(A) != sizeof(char*)) { \ (A)[sizeof(A) - 1] = '\0'; \ @@ -158,7 +158,7 @@ extern FILE* ioinfo; } while(0) #define strcpybuff(A, B) do { \ assertf( (A) != NULL ); \ - if ( ! (B) ) { assertf( 0 ); } \ + assertf( (const char*) (B) != NULL ); \ if (htsMemoryFastXfr) { \ if (sizeof(A) != sizeof(char*)) { \ (A)[sizeof(A) - 1] = '\0'; \ |