projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: handle_conversion_specifier_std(): use `sizeof(PRI*64) - 1`
[babeltrace.git]
/
common
/
common.c
diff --git
a/common/common.c
b/common/common.c
index 1c49a465ccfcee27ec228fa2c1862cbe8717fbe2..d261372d68e2c3d01ac267fa9f09cedfd74ecb51 100644
(file)
--- a/
common/common.c
+++ b/
common/common.c
@@
-1335,27
+1335,27
@@
static inline void handle_conversion_specifier_std(char *buf, char **buf_ch,
/* format (PRI*64) */
if (strncmp(fmt_ch, PRId64, sizeof(PRId64) - 1) == 0) {
/* format (PRI*64) */
if (strncmp(fmt_ch, PRId64, sizeof(PRId64) - 1) == 0) {
- fmt_ch += sizeof(PRId64);
+ fmt_ch += sizeof(PRId64)
- 1
;
BUF_STD_APPEND_SINGLE_ARG(int64_t);
goto update_rw_fmt;
} else if (strncmp(fmt_ch, PRIu64, sizeof(PRIu64) - 1) == 0) {
BUF_STD_APPEND_SINGLE_ARG(int64_t);
goto update_rw_fmt;
} else if (strncmp(fmt_ch, PRIu64, sizeof(PRIu64) - 1) == 0) {
- fmt_ch += sizeof(PRIu64);
+ fmt_ch += sizeof(PRIu64)
- 1
;
BUF_STD_APPEND_SINGLE_ARG(uint64_t);
goto update_rw_fmt;
} else if (strncmp(fmt_ch, PRIx64, sizeof(PRIx64) - 1) == 0) {
BUF_STD_APPEND_SINGLE_ARG(uint64_t);
goto update_rw_fmt;
} else if (strncmp(fmt_ch, PRIx64, sizeof(PRIx64) - 1) == 0) {
- fmt_ch += sizeof(PRIx64);
+ fmt_ch += sizeof(PRIx64)
- 1
;
BUF_STD_APPEND_SINGLE_ARG(uint64_t);
goto update_rw_fmt;
} else if (strncmp(fmt_ch, PRIX64, sizeof(PRIX64) - 1) == 0) {
BUF_STD_APPEND_SINGLE_ARG(uint64_t);
goto update_rw_fmt;
} else if (strncmp(fmt_ch, PRIX64, sizeof(PRIX64) - 1) == 0) {
- fmt_ch += sizeof(PRIX64);
+ fmt_ch += sizeof(PRIX64)
- 1
;
BUF_STD_APPEND_SINGLE_ARG(uint64_t);
goto update_rw_fmt;
} else if (strncmp(fmt_ch, PRIo64, sizeof(PRIo64) - 1) == 0) {
BUF_STD_APPEND_SINGLE_ARG(uint64_t);
goto update_rw_fmt;
} else if (strncmp(fmt_ch, PRIo64, sizeof(PRIo64) - 1) == 0) {
- fmt_ch += sizeof(PRIo64);
+ fmt_ch += sizeof(PRIo64)
- 1
;
BUF_STD_APPEND_SINGLE_ARG(uint64_t);
goto update_rw_fmt;
} else if (strncmp(fmt_ch, PRIi64, sizeof(PRIi64) - 1) == 0) {
BUF_STD_APPEND_SINGLE_ARG(uint64_t);
goto update_rw_fmt;
} else if (strncmp(fmt_ch, PRIi64, sizeof(PRIi64) - 1) == 0) {
- fmt_ch += sizeof(PRIi64);
+ fmt_ch += sizeof(PRIi64)
- 1
;
BUF_STD_APPEND_SINGLE_ARG(int64_t);
goto update_rw_fmt;
}
BUF_STD_APPEND_SINGLE_ARG(int64_t);
goto update_rw_fmt;
}
This page took
0.023663 seconds
and
4
git commands to generate.