~ubuntu-branches/ubuntu/saucy/mapserver/saucy-security

« back to all changes in this revision

Viewing changes to maplibxml2.c

  • Committer: Package Import Robot
  • Author(s): Francesco Paolo Lovergine
  • Date: 2011-12-23 14:02:06 UTC
  • mfrom: (26.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20111223140206-n3h9t2hsa8hyslmu
Tags: 6.0.1-2
Added missed stuff for libmapscript-perl.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/******************************************************************************
2
 
 * $Id: maplibxml2.c 7685 2008-06-17 16:01:49Z tomkralidis $
 
2
 * $Id: maplibxml2.c 11503 2011-04-07 19:56:16Z dmorissette $
3
3
 *
4
4
 * Project:  MapServer
5
5
 * Purpose:  libxml2 convenience wrapper functions
36
36
#include<libxml/xpath.h>
37
37
#include<libxml/xpathInternals.h>
38
38
 
39
 
MS_CVSID("$Id: maplibxml2.c 7685 2008-06-17 16:01:49Z tomkralidis $")
 
39
MS_CVSID("$Id: maplibxml2.c 11503 2011-04-07 19:56:16Z dmorissette $")
40
40
 
41
41
/**
42
42
 * msLibXml2GenerateList()
112
112
    if (xmlNodeDump(xbuf, doc, xpath->nodesetval->nodeTab[0], 0, 0) == -1) {
113
113
      return NULL;
114
114
    }
115
 
    result = strdup((char *)xbuf->content);
 
115
    result = msStrdup((char *)xbuf->content);
116
116
  }
117
117
  xmlBufferFree(xbuf);
118
118
  return result;