[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r428 - GNUnet/src/util
From: |
durner |
Subject: |
[GNUnet-SVN] r428 - GNUnet/src/util |
Date: |
Sat, 12 Mar 2005 13:22:25 -0800 (PST) |
Author: durner
Date: 2005-03-12 13:22:22 -0800 (Sat, 12 Mar 2005)
New Revision: 428
Modified:
GNUnet/src/util/configuration.c
Log:
fix parser
Modified: GNUnet/src/util/configuration.c
===================================================================
--- GNUnet/src/util/configuration.c 2005-03-12 19:51:51 UTC (rev 427)
+++ GNUnet/src/util/configuration.c 2005-03-12 21:22:22 UTC (rev 428)
@@ -1,6 +1,6 @@
/*
This file is part of GNUnet.
- (C) 2001, 2002, 2003, 2004 Christian Grothoff (and other contributing
authors)
+ (C) 2001, 2002, 2003, 2004, 2005 Christian Grothoff (and other
contributing authors)
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
@@ -200,10 +200,14 @@
i=0;
}
#ifdef MINGW
+ {
+ int i2;
+
/* Strip LF */
- nr = strlen(value) - 1;
- if (nr >= 0 && value[nr] == '\r')
- value[nr] = 0;
+ i2 = strlen(value) - 1;
+ if (i2 >= 0 && value[i2] == '\r')
+ value[i2] = 0;
+ }
#endif
cfg_set_entry(e, tag, &value[i]);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r428 - GNUnet/src/util,
durner <=