Skip to content

Commit

Permalink
Merge pull request #389 from RyanHope97/snprintf
Browse files Browse the repository at this point in the history
snprintf() snippet incorrectly inserts sprintf() body
  • Loading branch information
rafamadriz authored Jan 24, 2024
2 parents 20e04ae + 70c8600 commit 7183d12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snippets/c/c.json
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@
},
"snprintf": {
"prefix": "snprintf",
"body": ["sprintf(${1:buf}, ${2:max}, \"${3:%s}\\n\"$3)$0"],
"body": ["snprintf(${1:buf}, ${2:max}, \"${3:%s}\\n\"$3)$0"],
"description": "snprintf() snippet"
},
"scanf": {
Expand Down

0 comments on commit 7183d12

Please sign in to comment.