diff --git a/src/apps/pulse/ConfigView.cpp b/src/apps/pulse/ConfigView.cpp index b6c2de2ccc..7944f0eb88 100644 --- a/src/apps/pulse/ConfigView.cpp +++ b/src/apps/pulse/ConfigView.cpp @@ -309,9 +309,9 @@ ConfigView::UpdateDeskbarIconWidth() int width = atoi(fIconWidthControl->Text()); int min_width = GetMinimumViewWidth(); if (width < min_width || width > 50) { - char temp[10]; + char temp[12]; if (width < min_width) { - sprintf(temp, "%d", min_width); + snprintf(temp, 12, "%d", min_width); width = min_width; } else { strcpy(temp, "50"); @@ -368,7 +368,7 @@ ConfigView::_ResetDefaults() fTarget.SendMessage(message); char temp[10]; - sprintf(temp, "%d", DEFAULT_DESKBAR_ICON_WIDTH); + snprintf(temp, 10, "%d", DEFAULT_DESKBAR_ICON_WIDTH); fIconWidthControl->SetText(temp); // Need to force the model message to be sent fIconWidthControl->Invoke();