[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r29266 - Extractor/src/plugins
From: |
gnunet |
Subject: |
[GNUnet-SVN] r29266 - Extractor/src/plugins |
Date: |
Sun, 15 Sep 2013 18:58:38 +0200 |
Author: grothoff
Date: 2013-09-15 18:58:38 +0200 (Sun, 15 Sep 2013)
New Revision: 29266
Modified:
Extractor/src/plugins/jpeg_extractor.c
Log:
strip tailing whitespace in comments
Modified: Extractor/src/plugins/jpeg_extractor.c
===================================================================
--- Extractor/src/plugins/jpeg_extractor.c 2013-09-15 16:58:09 UTC (rev
29265)
+++ Extractor/src/plugins/jpeg_extractor.c 2013-09-15 16:58:38 UTC (rev
29266)
@@ -153,8 +153,14 @@
goto EXIT;
for (mptr = jds.marker_list; NULL != mptr; mptr = mptr->next)
{
+ size_t off;
+
if (JPEG_COM != mptr->marker)
continue;
+ off = 0;
+ while ( (off < mptr->data_length) &&
+ (isspace ((int) ((const char *)mptr->data)[mptr->data_length - 1
- off])) )
+ off++;
if (0 !=
ec->proc (ec->cls,
"jpeg",
@@ -162,7 +168,7 @@
EXTRACTOR_METAFORMAT_C_STRING,
"text/plain",
(const char *) mptr->data,
- mptr->data_length))
+ mptr->data_length - off))
goto EXIT;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r29266 - Extractor/src/plugins,
gnunet <=