}
status = (*db->seq)(db, &key, &data, R_FIRST);
while (status == RET_SUCCESS) {
- (void)fprintf(fp, "%s\n", key.data);
+ (void)fprintf(fp, "%.*s\n", (int)key.size, key.data);
status = (*db->seq)(db, &key, &data, R_NEXT);
}
(void)fclose(fp);
}
status = bt_rseq(db, &key, &data, &cookie, R_FIRST);
while (status == RET_SUCCESS) {
- (void)fprintf(fp, "%s\n", key.data);
+ (void)fprintf(fp, "%.*s\n", (int)key.size, key.data);
status = bt_rseq(db, &key, &data, &cookie, R_NEXT);
}
(void)fclose(fp);
DBT *key, *data;
{
if (!recno && key->size > 0)
- (void)printf("%s/", key->data);
+ (void)printf("%.*s/", (int)key->size, key->data);
if (data->size > 0)
- (void)printf("%s", data->data);
+ (void)printf("%.*s", (int)data->size, data->data);
(void)printf("\n");
}