Reported by Marcus Watts
Pointer arithmetic is inappropriate when attempting to output
one of the elements of an array or C-string.
LICENSE IPL10
Reviewed-on: http://gerrit.openafs.org/90
Verified-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Russ Allbery <rra@stanford.edu>
"[%s:%s] Writing %d chars to text object at %p (highlight=%d, skip=%d: '",
mn, rn, numChars, onp, highlight, skip);
for (i = 0; i < numChars; i++)
- fprintf(stderr, "%c", strToWrite + i);
+ fprintf(stderr, "%c", strToWrite[i]);
fprintf(stderr, "\n");
}