Skip to content

fix: fix snprintf arg list.#626

Open
lI15SO0 wants to merge 1 commit intorafamadriz:mainfrom
lI15SO0:fix/c-snprintf-snippet
Open

fix: fix snprintf arg list.#626
lI15SO0 wants to merge 1 commit intorafamadriz:mainfrom
lI15SO0:fix/c-snprintf-snippet

Conversation

@lI15SO0
Copy link
Copy Markdown

@lI15SO0 lI15SO0 commented Mar 29, 2026

Origin snippet at c.json:300

 "snprintf": {
        "prefix": "snprintf",
        "body": ["snprintf(${1:buf}, ${2:max}, \"${3:%s}\\n\"$3);$0"],
        "description": "snprintf() snippet"
    },

When i use this snippet , it will fill like this.

snprintf_report

Fix it by replace the second $3 to $4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant