diff options
Diffstat (limited to 'src/definition.cpp')
-rw-r--r-- | src/definition.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/definition.cpp b/src/definition.cpp index 4a8c65d..4491bc4 100644 --- a/src/definition.cpp +++ b/src/definition.cpp @@ -896,11 +896,11 @@ QCString Definition::getSourceAnchor() const { if (Htags::useHtags) { - snprintf(anchorStr,maxAnchorStrLen,"L%d",m_impl->body->startLine); + qsnprintf(anchorStr,maxAnchorStrLen,"L%d",m_impl->body->startLine); } else { - snprintf(anchorStr,maxAnchorStrLen,"l%05d",m_impl->body->startLine); + qsnprintf(anchorStr,maxAnchorStrLen,"l%05d",m_impl->body->startLine); } } return anchorStr; @@ -1166,7 +1166,7 @@ void Definition::_writeSourceRefList(OutputList &ol,const char *scopeName, } const int maxLineNrStr = 10; char anchorStr[maxLineNrStr]; - snprintf(anchorStr,maxLineNrStr,"l%05d",md->getStartBodyLine()); + qsnprintf(anchorStr,maxLineNrStr,"l%05d",md->getStartBodyLine()); //printf("Write object link to %s\n",md->getBodyDef()->getSourceFileBase().data()); ol.writeObjectLink(0,md->getBodyDef()->getSourceFileBase(),anchorStr,name); ol.popGeneratorState(); |