Return to sdiff.c CVS log | Up to [local] / src / usr.bin / sdiff |
version 1.6, 2005/12/27 04:33:31 | version 1.7, 2005/12/27 04:35:22 | ||
---|---|---|---|
|
|
||
* the terminating NUL. `copied' includes the \n character. | * the terminating NUL. `copied' includes the \n character. | ||
*/ | */ | ||
if (Dflag) | if (Dflag) | ||
assert(offset + copied + sizeof((char)'\0') == newlen); | assert(offset + copied + 1 == newlen); | ||
/* Store generated string's values. */ | /* Store generated string's values. */ | ||
offset = newlen - sizeof((char)'\0'); | offset = newlen - 1; | ||
oldstr = *s; | oldstr = *s; | ||
} | } | ||