[Refdb-cvs] CVS: refdb/src backend-db31.c,1.16.2.6,1.16.2.7
Status: Beta
Brought to you by:
mhoenicka
From: Markus H. <mho...@us...> - 2006-02-11 00:46:03
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2212/src Modified Files: Tag: Release_0_9_5_stable backend-db31.c Log Message: entitize publisher in docbook output Index: backend-db31.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/backend-db31.c,v retrieving revision 1.16.2.6 retrieving revision 1.16.2.7 diff -u -U2 -r1.16.2.6 -r1.16.2.7 --- backend-db31.c 3 Nov 2005 20:40:19 -0000 1.16.2.6 +++ backend-db31.c 11 Feb 2006 00:45:54 -0000 1.16.2.7 @@ -689,5 +689,14 @@ } - if ((new_ref = mstrcat(*ptr_chunk_buf, (char*)item, ptr_chunk_buf_len, 0)) == NULL) { /* publisher */ + if ((entitize_buf = mstrdup((char*)item)) == NULL) { + return NULL; + } + + if (sgml_entitize(&entitize_buf, NULL) == NULL) { + free(entitize_buf); + return NULL; + } + + if ((new_ref = mstrcat(*ptr_chunk_buf, entitize_buf, ptr_chunk_buf_len, 0)) == NULL) { /* publisher */ LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; @@ -697,4 +706,6 @@ } + free(entitize_buf); + if ((new_ref = mstrcat(*ptr_chunk_buf, "</publishername>", ptr_chunk_buf_len, 0)) == NULL) { LOG_PRINT(LOG_CRIT, get_status_msg(801)); |