ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/src/inifile_reader.c
(Generate patch)

Comparing Daodan/src/inifile_reader.c (file contents):
Revision 676 by rossy, Sat Oct 17 11:49:49 2009 UTC vs.
Revision 677 by alloc, Sat Mar 2 23:46:33 2013 UTC

# Line 1 | Line 1
1   #include <stdio.h>
2   #include <stdlib.h>
3 < #include <stdbool.h>
3 > #include "bool.h"
4   #include <string.h>
5   #include <ctype.h>
6  
# Line 112 | Line 112 | bool inifile_read(const char* filename,
112                          
113                          if (inisection[0])
114                                  free(inisection);
115 <                        inisection = strdup(readptr + 1); // Skip the first [
115 >                        inisection = _strdup(readptr + 1); // Skip the first [
116                          newsection = true;
117                  }
118                  else // It's a value.

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)