Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-22545

my_vsnprintf behaves not as in C standard

Details

    Description

      Some developers apparently don't like that now my_vsnprintf("%.*s") behaves not as in the C standard.

      So, we'll change it back and introduce %S to print the truncation indicator.

      All %s that print something to the end user have to be changed, for example, to %S. This includes all error messages and everything in the code too.

      Don't forget to update the documentation in the service header file.

      And we'll need some way to ensure that in the future all new printfs to the use also use %S.

      Attachments

        Issue Links

          Activity

            Transition Time In Source Status Execution Times
            Oleksandr Byelkin made transition -
            Open In Progress
            5d 23h 57m 1
            Oleksandr Byelkin made transition -
            In Progress In Review
            18h 58m 1
            Sergei Golubchik made transition -
            In Review Stalled
            7h 51m 1
            Oleksandr Byelkin made transition -
            Stalled Closed
            14d 14h 28m 1

            People

              sanja Oleksandr Byelkin
              serg Sergei Golubchik
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.