~ubuntu-branches/debian/squeeze/freeciv/squeeze

« back to all changes in this revision

Viewing changes to server/scripting/script.c

  • Committer: Bazaar Package Importer
  • Author(s): Clint Adams
  • Date: 2008-11-29 22:25:59 UTC
  • mfrom: (1.2.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20081129222559-6sqqdum8qnhykm4l
Tags: 2.1.8-1
* New upstream release.  closes: #495740.
* Disable GGZ support (can be re-enabled when ggz 1.0 is available).
* Change maintainer to Debian Games Team.

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
      }
105
105
    }
106
106
 
107
 
    freelog(LOG_ERROR, str.str);
 
107
    freelog(LOG_ERROR, "%s", str.str);
108
108
 
109
109
    astr_free(&str);
110
110
 
288
288
    const char *vars;
289
289
    const char *section = "script.vars";
290
290
 
291
 
    vars = secfile_lookup_str_default(file, "", section);
 
291
    vars = secfile_lookup_str_default(file, "", "%s", section);
292
292
    script_dostring(state, vars, section);
293
293
  }
294
294
}
344
344
    const char *code;
345
345
    const char *section = "script.code";
346
346
 
347
 
    code = secfile_lookup_str_default(file, "", section);
 
347
    code = secfile_lookup_str_default(file, "", "%s", section);
348
348
    script_code = mystrdup(code);
349
349
    script_dostring(state, script_code, section);
350
350
  }