diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2013-10-10 00:05:22 -0400 |
---|---|---|
committer | TingPing <tingping@tingping.se> | 2013-10-10 00:05:22 -0400 |
commit | c226f4089ae99283dab4f681710ce798c3908969 (patch) | |
tree | 8f1b9b8373ca4b1bb09c39194279d524b2c93fda /src/common/ignore.c | |
parent | e244001cee150d574e668aaf478626a036d31cc9 (diff) |
Fix a few cppcheck warnings.
Use the proper data type in format functions and fix a resource leak.
Diffstat (limited to 'src/common/ignore.c')
-rw-r--r-- | src/common/ignore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/ignore.c b/src/common/ignore.c index f1071638..5bd6a6a5 100644 --- a/src/common/ignore.c +++ b/src/common/ignore.c @@ -322,7 +322,7 @@ ignore_save () ig = (struct ignore *) temp->data; if (!(ig->type & IG_NOSAVE)) { - snprintf (buf, sizeof (buf), "mask = %s\ntype = %d\n\n", + snprintf (buf, sizeof (buf), "mask = %s\ntype = %u\n\n", ig->mask, ig->type); write (fh, buf, strlen (buf)); } |