summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 83a81a5)
raw | patch | inline | side by side (parent: 83a81a5)
author | johncliff <johncliff@users.sourceforge.net> | |
Wed, 20 Aug 2008 21:01:27 +0000 (21:01 +0000) | ||
committer | johncliff <johncliff@users.sourceforge.net> | |
Wed, 20 Aug 2008 21:01:27 +0000 (21:01 +0000) |
See jabber logs at 4pm 8/20/08
src/main.cpp | patch | blob | history |
diff --git a/src/main.cpp b/src/main.cpp
index f19dac81cd33682a205934e043118bf3a432efb4..f9904c71c4275d481b1c1f5d3d7adc2c1528a4e9 100644 (file)
--- a/src/main.cpp
+++ b/src/main.cpp
/**
* Set up the PATH and PYTHONPATH environment variables on
* win32
- */
+ */
static int _win32_set_inkscape_env(const Glib::ustring &exePath)
{
/**
* This is the classic main() entry point of the program, though on some
* architectures it might be called by something else.
- */
+ */
int
main(int argc, char **argv)
{
/**
* Call bindtextdomain() for various machines's paths
- */
+ */
#ifdef ENABLE_NLS
#ifdef WIN32
Glib::ustring localePath = homedir;
unsigned long int height = 0;
if (sp_export_width) {
+ errno=0;
width = strtoul(sp_export_width, NULL, 0);
if ((width < 1) || (width > PNG_UINT_31_MAX) || (errno == ERANGE) ) {
g_warning("Export width %lu out of range (1 - %lu). Nothing exported.", width, (unsigned long int)PNG_UINT_31_MAX);
}
if (sp_export_height) {
+ errno=0;
height = strtoul(sp_export_height, NULL, 0);
if ((height < 1) || (height > PNG_UINT_31_MAX)) {
g_warning("Export height %lu out of range (1 - %lu). Nothing exported.", height, (unsigned long int)PNG_UINT_31_MAX);