diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-01-21 15:35:09 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-01-21 15:36:35 -0800 |
commit | 8b22282c564763bb3fb6baf5aae7b341dfbb33db (patch) | |
tree | 7e7258a42f12b0c78c8ac2ceed0dffce5a993f20 /toc.c | |
parent | b7d18901774b955e000610b4138e93ed528613f7 (diff) |
Handle -Wformat-security warnings from the DEBUG macro
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'toc.c')
-rw-r--r-- | toc.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -1140,12 +1140,7 @@ Msg TocMsgFromId(Toc toc, int msgid) l = 0; h = toc->nummsgs - 1; if (h < 0) { - if (app_resources.debug) { - char str[100]; - snprintf(str, sizeof(str), - "Toc is empty! folder=%s\n", toc->foldername); - DEBUG( str ) - } + DEBUG1("Toc is empty! folder=%s\n", toc->foldername) return NULL; } while (l < h - 1) { |