diff options
-rw-r--r-- | src/c/operations/interfaces/int_OpPlus.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/c/operations/interfaces/int_OpPlus.h b/src/c/operations/interfaces/int_OpPlus.h index 9a385829..cb86d815 100644 --- a/src/c/operations/interfaces/int_OpPlus.h +++ b/src/c/operations/interfaces/int_OpPlus.h @@ -134,9 +134,9 @@ /* Strings */ - +/* RNU: size1[1]-1 -> "-1" because '\0' of the first string must be removed. */ #define g2g2OpPlusg2(in1,size1,in2,size2,out) {int i = 0, j = 0; \ - for(i = 0 ; i < size1[1] ; ++i, ++j) out[j] = in1[i]; \ + for(i = 0 ; i < size1[1]-1 ; ++i, ++j) out[j] = in1[i]; \ for(i = 0 ; i < size2[1] ; ++i, ++j) out[j] = in2[i]; \ } |