diff --git a/Fltk/optionWindow.cpp b/Fltk/optionWindow.cpp
index e3c2debdb1573197bd5419df45a37c9df92e278f..c003704dc8da3a051f3ee59fbecbd187153971d0 100644
--- a/Fltk/optionWindow.cpp
+++ b/Fltk/optionWindow.cpp
@@ -40,7 +40,7 @@ class engineeringValueInput : public Fl_Value_Input
  public:
   engineeringValueInput(int x, int y, int w, int h, const char *l=0) :
     Fl_Value_Input(x, y, w, h, l) {}
-  virtual int format(char *buffer){ return snprintf(buffer, 128, "%g", value()); }
+  virtual int format(char *buffer){ return sprintf(buffer, "%g", value()); }
 };
 
 static Fl_Menu_Item menu_point_display[] = {
diff --git a/Post/PViewDataGModel.cpp b/Post/PViewDataGModel.cpp
index e653811e66b278b0cc9e7f21124bfa42417018f3..18d7a02f842f73b4d39522f75c857729ba66d4d1 100644
--- a/Post/PViewDataGModel.cpp
+++ b/Post/PViewDataGModel.cpp
@@ -374,10 +374,10 @@ void PViewDataGModel::getValue(int step, int ent, int ele, int nod, int comp, do
     val = _steps[step]->getData(e->getVertex(nod)->getNum())[comp];
     break;
   case ElementNodeData:
-  case GaussPointData: 
+  case GaussPointData:
     val = _steps[step]->getData(e->getNum())[_steps[step]->getNumComponents() * nod + comp];
     break;
-  case ElementData: 
+  case ElementData:
   default: 
     val = _steps[step]->getData(e->getNum())[comp];
     break;