Landing: 0a82c5e1187c

Project / Subsystem

gcc / cobol

Date

2026-07-11

Author

Robert Dubner

Commit

0a82c5e1187c68acd5bbe7afa1c2f870a653d369

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
cobol
patch_id
commit_hash
0a82c5e1187c68acd5bbe7afa1c2f870a653d369
source_type
github
headline
Cobol: Use snprintf instead of strncpy in charmaps.cc.
tldr
Replaced strncpy with snprintf in cobol's charmaps.cc to eliminate compiler warnings.
author
Robert Dubner
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • cobol
  • warning
  • security
discussion_id_link
bugzilla_pr
date
2026-07-11T00:00:00.000Z

Changed strncpy to snprintf in the helpful_iconv_open function within cobol’s charmaps.cc. This adjustment addresses compiler warnings related to the use of strncpy, promoting safer string manipulation.