[PR #233] [CLOSED] Changed scanf to fgets #520

Open
opened 2026-01-29 15:13:27 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/TheAlgorithms/C/pull/233
Author: @VilopusDoom
Created: 6/5/2019
Status: Closed

Base: masterHead: patch-1


📝 Commits (1)

📊 Changes

1 file changed (+27 additions, -17 deletions)

View changed files

📝 conversions/binary_to_decimal.c (+27 -17)

📄 Description

Scanf is generally considered to be less secure than fgets. If you need bigger than 100 chars, change the array length, and the fgets statement accordingly


🔄 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/TheAlgorithms/C/pull/233 **Author:** [@VilopusDoom](https://github.com/VilopusDoom) **Created:** 6/5/2019 **Status:** ❌ Closed **Base:** `master` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`4908e4c`](https://github.com/TheAlgorithms/C/commit/4908e4cdd552e695c3b63931914f2288b5d87628) Changed scanf to fgets ### 📊 Changes **1 file changed** (+27 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `conversions/binary_to_decimal.c` (+27 -17) </details> ### 📄 Description Scanf is generally considered to be less secure than fgets. If you need bigger than 100 chars, change the array length, and the fgets statement accordingly --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 15:13:27 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#520