version 1.69, 2007/01/11 02:35:55 |
version 1.70, 2007/01/12 19:28:12 |
|
|
{ |
{ |
int l; |
int l; |
size_t len; |
size_t len; |
|
RCSNUM *head; |
const char *status; |
const char *status; |
char buf[128], timebuf[32], revbuf[32]; |
char buf[128], timebuf[32], revbuf[32]; |
struct rcs_sym *sym; |
struct rcs_sym *sym; |
|
|
if (len >= sizeof(buf)) |
if (len >= sizeof(buf)) |
fatal("cvs_status_local: truncation"); |
fatal("cvs_status_local: truncation"); |
} else { |
} else { |
rcsnum_tostr(rcs_head_get(cf->file_rcs), |
head = rcs_head_get(cf->file_rcs); |
revbuf, sizeof(revbuf)); |
rcsnum_tostr(head, revbuf, sizeof(revbuf)); |
|
rcsnum_free(head); |
l = snprintf(buf, sizeof(buf), "%s\t%s", revbuf, |
l = snprintf(buf, sizeof(buf), "%s\t%s", revbuf, |
cf->file_rpath); |
cf->file_rpath); |
if (l == -1 || l >= (int)sizeof(buf)) |
if (l == -1 || l >= (int)sizeof(buf)) |