Commit a31f364b authored by jkvis's avatar jkvis

Strings should be immutable

parent 858b175b
......@@ -829,7 +829,6 @@ int
sais(unsigned char *T, int *SA, int* LCP, int n) {
if((T == NULL) || (SA == NULL) || (LCP == NULL) || (n < 0)) { return -1; }
if(n <= 1) { if(n == 1) { SA[0] = 0; LCP[0] = 0; } return 0; }
T[n - 1] = 0;
return sais_main(T, SA, LCP, 0, n, UCHAR_SIZE, sizeof(unsigned char), 0,1);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment