Index: ap_Toolbar_Functions.cpp =================================================================== RCS file: /cvsroot/abi/src/wp/ap/xp/ap_Toolbar_Functions.cpp,v retrieving revision 1.89 diff -u -r1.89 ap_Toolbar_Functions.cpp --- ap_Toolbar_Functions.cpp 11 Oct 2004 02:20:56 -0000 1.89 +++ ap_Toolbar_Functions.cpp 11 Oct 2004 20:27:21 -0000 @@ -775,28 +775,25 @@ EV_Toolbar_ItemState s = EV_TIS_UseString; - static char buf[10]; UT_uint32 iZoom = 0 ; - UT_String str; + static UT_String str; switch(pFrame->getZoomType()) { // special cases case XAP_Frame::z_PAGEWIDTH: pSS->getValue(XAP_STRING_ID_TB_Zoom_PageWidth, pFrame->getApp()->getDefaultEncoding(),str); - sprintf(buf, "%s", str.c_str()); break; case XAP_Frame::z_WHOLEPAGE: pSS->getValue(XAP_STRING_ID_TB_Zoom_WholePage, pFrame->getApp()->getDefaultEncoding(),str); - sprintf(buf, "%s", str.c_str()); break; default: iZoom = pView->getGraphics()->getZoomPercentage(); - sprintf(buf, "%d%%", iZoom); + UT_String_sprintf(str, "%d%%", iZoom); break; } - *pszState = buf; + *pszState = str.c_str(); return s; }