unstick update && syntax check

This commit is contained in:
gazhonsepaskwa
2025-02-08 12:37:48 +01:00
parent d3849d196f
commit 373e240e85
6 changed files with 124 additions and 20 deletions

View File

@@ -17,9 +17,11 @@ char *copy_meta_xor(char *val, int *copied, int rev)
int i;
int j;
char *out;
char ref;
i = 0;
while (is_meta(val[i]) ^ rev)
ref = val[0];
while ((is_meta(val[i]) && val[i] == ref) ^ rev)
i++;
*copied = i;
out = malloc(i + 1);