Skip to content

Commit 1121d61

Browse files
committed
Fixed compiler warnings
1 parent e672f3d commit 1121d61

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Source/Objects/ofxOfeliaData.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ ofxOfeliaData::ofxOfeliaData()
2727
,isDirectMode(false)
2828
,hasUniqueSym(false)
2929
,lua(std::make_unique<ofxOfeliaLua>(this))
30-
,io(this)
3130
,signal(this)
31+
,io(this)
3232
,textBuf(this){};
3333

3434

Source/Objects/ofxOfeliaTextBuf.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ void ofxOfeliaTextBuf::openMethod()
8282
sys_hostfontsize(glist_getfont(dataPtr->canvas),
8383
glist_getzoom(dataPtr->canvas)));
8484
char buf[40];
85-
std::sprintf(buf, ".x%lx", reinterpret_cast<unsigned long>(dataPtr));
85+
std::snprintf(buf, 40, ".x%lx", reinterpret_cast<unsigned long>(dataPtr));
8686
dataPtr->guiconnect = guiconnect_new(&dataPtr->ob.ob_pd, gensym(buf));
8787
senditup();
8888
}

0 commit comments

Comments
 (0)