file-roller r2425 - in trunk: . src
- From: paobac svn gnome org
- To: svn-commits-list gnome org
- Subject: file-roller r2425 - in trunk: . src
- Date: Sat, 16 Aug 2008 09:01:45 +0000 (UTC)
Author: paobac
Date: Sat Aug 16 09:01:45 2008
New Revision: 2425
URL: http://svn.gnome.org/viewvc/file-roller?rev=2425&view=rev
Log:
2008-08-16 Paolo Bacchilega <paobac svn gnome org>
* src/fr-command-7z.c: use the second line to determine the 7zip
version (#547733).
Modified:
trunk/ChangeLog
trunk/src/fr-command-7z.c
Modified: trunk/src/fr-command-7z.c
==============================================================================
--- trunk/src/fr-command-7z.c (original)
+++ trunk/src/fr-command-7z.c Sat Aug 16 09:01:45 2008
@@ -95,12 +95,12 @@
g_return_if_fail (line != NULL);
if (! p7z_comm->list_started) {
- if (strncmp (line, "7-Zip ", 6) == 0) {
+ if (strncmp (line, "p7zip Version ", 14) == 0) {
const char *ver_start;
int ver_len;
char version[256];
- ver_start = eat_spaces (line + 6);
+ ver_start = eat_spaces (line + 14);
ver_len = strchr (ver_start, ' ') - ver_start;
strncpy (version, ver_start, ver_len);
version[ver_len] = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]