[PR #5664] [MERGED] Fix sprintf to snprintf #11874

Closed
opened 2026-04-12 23:41:14 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/5664
Author: @FellowTraveler
Created: 7/13/2024
Status: Merged
Merged: 9/3/2024
Merged by: @dhiltgen

Base: mainHead: fix_sprintf


📝 Commits (1)

📊 Changes

1 file changed (+3 additions, -3 deletions)

View changed files

📝 llm/ext_server/server.cpp (+3 -3)

📄 Description

/Users/au/src/ollama/llm/ext_server/server.cpp:289:9: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/5664 **Author:** [@FellowTraveler](https://github.com/FellowTraveler) **Created:** 7/13/2024 **Status:** ✅ Merged **Merged:** 9/3/2024 **Merged by:** [@dhiltgen](https://github.com/dhiltgen) **Base:** `main` ← **Head:** `fix_sprintf` --- ### 📝 Commits (1) - [`50a64aa`](https://github.com/ollama/ollama/commit/50a64aa99a66d3fc46f5bf3f362f170210ccdc26) Fix sprintf to snprintf ### 📊 Changes **1 file changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `llm/ext_server/server.cpp` (+3 -3) </details> ### 📄 Description /Users/au/src/ollama/llm/ext_server/server.cpp:289:9: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-12 23:41:14 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#11874