Bug 710787 - Replace most uses of sprintf() with g_snprintf()
authorMurray Cumming <murrayc@openismus.com>
Sat, 26 Oct 2013 00:32:03 +0000 (20:32 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Sat, 26 Oct 2013 00:37:28 +0000 (20:37 -0400)
commitad79ca023cb34175920a0c0fbebf3218f2f4e9eb
tree918db1f21c9d17eaa498885dd0ca490075b96c53
parent977410f7f5f66e1f8cef05060912d900ccbdefbb
Bug 710787 - Replace most uses of sprintf() with g_snprintf()

sprintf() can potentially overwrite the buffer, but g_snprintf() takes
a length to stop it from doing that.

Some of these might instead be replaced by g_strdup_printf().  It is
hard to know if the use of alloca() and sprintf() was just because
g_strdup_printf() did not exist yet, or if alloca() was used for
performance.
22 files changed:
calendar/libecal/e-cal-recur.c
camel/camel-certdb.c
camel/camel-charset-map.c
camel/camel-data-cache.c
camel/camel-folder-search.c
camel/camel-iconv.c
camel/camel-imapx-utils.c
camel/camel-lock-helper.c
camel/camel-lock.c
camel/camel-mime-parser.c
camel/camel-text-index.c
camel/providers/local/camel-local-summary.c
camel/providers/local/camel-mbox-store.c
camel/providers/local/camel-mbox-summary.c
camel/providers/local/camel-mh-store.c
camel/providers/local/camel-spool-store.c
camel/providers/local/camel-spool-summary.c
camel/providers/nntp/camel-nntp-store.c
camel/providers/pop3/camel-pop3-store.c
camel/tests/message/test2.c
camel/tests/mime-filter/test-tohtml.c
libedataserver/e-source-camel.c