[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r6076 - Extractor/src/plugins
From: |
gnunet |
Subject: |
[GNUnet-SVN] r6076 - Extractor/src/plugins |
Date: |
Wed, 2 Jan 2008 03:22:27 -0700 (MST) |
Author: grothoff
Date: 2008-01-02 03:22:27 -0700 (Wed, 02 Jan 2008)
New Revision: 6076
Modified:
Extractor/src/plugins/tiffextractor.c
Log:
better
Modified: Extractor/src/plugins/tiffextractor.c
===================================================================
--- Extractor/src/plugins/tiffextractor.c 2008-01-02 10:19:46 UTC (rev
6075)
+++ Extractor/src/plugins/tiffextractor.c 2008-01-02 10:22:27 UTC (rev
6076)
@@ -175,12 +175,10 @@
}
if (width != -1)
{
- char *tmp;
- tmp = malloc (128);
- sprintf (tmp, "%ux%u",
+ char tmp[128];
+ snprintf (tmp, 128, "%ux%u",
(unsigned int) width, (unsigned int) length);
addKeyword (&prev, strdup (tmp), EXTRACTOR_SIZE);
- free (tmp);
}
break;
case TAG_WIDTH:
@@ -190,12 +188,10 @@
width = entry.value_or_offset;
if (length != -1)
{
- char *tmp;
- tmp = malloc (128);
- sprintf (tmp, "%ux%u",
+ char tmp[128];
+ snprintf (tmp, 128, "%ux%u",
(unsigned int) width, (unsigned int) length);
addKeyword (&prev, strdup (tmp), EXTRACTOR_SIZE);
- free (tmp);
}
break;
case TAG_SOFTWARE:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r6076 - Extractor/src/plugins,
gnunet <=