|
Line 0
Link Here
|
|
|
1 |
--- include/xmlrpc-c/string_int.h.orig 2016-08-01 22:12:28 UTC |
| 2 |
+++ include/xmlrpc-c/string_int.h |
| 3 |
@@ -121,8 +121,8 @@ xmlrpc_makePrintableChar(char const inpu |
| 4 |
(strncpy((A), (B), sizeof(A)), *((A)+sizeof(A)-1) = '\0') |
| 5 |
#define STRSCMP(A,B) \ |
| 6 |
(strncmp((A), (B), sizeof(A))) |
| 7 |
-#define STRSCAT(A,B) \ |
| 8 |
- (strncat((A), (B), sizeof(A)-strlen(A)), *((A)+sizeof(A)-1) = '\0') |
| 9 |
+#define STRNSCAT(A,B) \ |
| 10 |
+ (strncat((A), (B), sizeof(A)-strlen(A)-1), *((A)+sizeof(A)-1) = '\0') |
| 11 |
|
| 12 |
/* We could do this, but it works only in GNU C |
| 13 |
#define SSPRINTF(TARGET, REST...) \ |