[babl] babl: Decrease scope of create_name() buffer
- From: Martin Nordholts <martinn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [babl] babl: Decrease scope of create_name() buffer
- Date: Mon, 6 Sep 2010 06:35:35 +0000 (UTC)
commit 13f6cd5143e7ab44c09cf22962999662ccab7b5d
Author: Martin Nordholts <martinn src gnome org>
Date: Mon Sep 6 08:35:03 2010 +0200
babl: Decrease scope of create_name() buffer
babl/babl-fish-reference.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/babl/babl-fish-reference.c b/babl/babl-fish-reference.c
index 5fbc837..fa47ea9 100644
--- a/babl/babl-fish-reference.c
+++ b/babl/babl-fish-reference.c
@@ -30,12 +30,13 @@ assert_conversion_find (void *source,
return ret;
}
-static char buf[1024];
static char *
create_name (const Babl *source,
const Babl *destination,
int is_reference)
{
+ static char buf[1024];
+
/* fish names are intentionally kept short */
snprintf (buf, 1024, "%s %p %p",
is_reference ? "ref "
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]