diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-10-15 20:44:34 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-10-15 20:44:34 +0200 |
commit | f792c47a04c55c82f7ed66c727ebe96ccc99a473 (patch) | |
tree | e6f17277966778d69a4405db15ef1b2579089dbe | |
parent | f675653eefe612dae726104914a2da451ea77077 (diff) | |
download | libextractor-f792c47a04c55c82f7ed66c727ebe96ccc99a473.tar.gz libextractor-f792c47a04c55c82f7ed66c727ebe96ccc99a473.zip |
need isspace, not isblank for rpm extractor
-rw-r--r-- | src/plugins/rpm_extractor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/rpm_extractor.c b/src/plugins/rpm_extractor.c index ede82d5..21596d2 100644 --- a/src/plugins/rpm_extractor.c +++ b/src/plugins/rpm_extractor.c | |||
@@ -355,7 +355,7 @@ EXTRACTOR_rpm_extract_method (struct EXTRACTOR_ExtractContext *ec) | |||
355 | if (NULL == ctime_r (&tp, tmp)) | 355 | if (NULL == ctime_r (&tp, tmp)) |
356 | break; | 356 | break; |
357 | if ( (strlen (tmp) > 0) && | 357 | if ( (strlen (tmp) > 0) && |
358 | (isblank ((unsigned char) tmp[strlen(tmp)-1])) ) | 358 | (isspace ((unsigned char) tmp[strlen(tmp)-1])) ) |
359 | tmp[strlen (tmp) - 1] = '\0'; /* eat linefeed */ | 359 | tmp[strlen (tmp) - 1] = '\0'; /* eat linefeed */ |
360 | pthread_mutex_lock (&parg.lock); | 360 | pthread_mutex_lock (&parg.lock); |
361 | if (0 != ec->proc (ec->cls, | 361 | if (0 != ec->proc (ec->cls, |