Changeset: c47e8f94d083 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=c47e8f94d083 Modified Files: gdk/gdk_utils.c Branch: Jul2017 Log Message:
Fix an old thinko and use a constant string as format string. diffs (18 lines): diff --git a/gdk/gdk_utils.c b/gdk/gdk_utils.c --- a/gdk/gdk_utils.c +++ b/gdk/gdk_utils.c @@ -979,12 +979,8 @@ doGDKaddbuf(const char *prefix, const ch } *dst = '\0'; } else { - /* construct format string because the format string - * must start with ! */ - char format[32]; - - snprintf(format, sizeof(format), "%s%%.*s%s", prefix ? prefix : "", suffix ? suffix : ""); - THRprintf(GDKout, format, (int) messagelen, message); + THRprintf(GDKout, "%s%.*s%s", prefix ? prefix : "", + (int) messagelen, message, suffix ? suffix : ""); } } _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list