xonotic/netradiant.git
5 years agoKTX support - something Git didn't want to commit
SiPlus [Sat, 30 May 2015 19:06:19 +0000 (22:06 +0300)]
KTX support - something Git didn't want to commit

5 years agoAdd KTX and ETC1 texture support
SiPlus [Sat, 30 May 2015 18:55:04 +0000 (21:55 +0300)]
Add KTX and ETC1 texture support

5 years agoInclude unistd.h on POSIX, not just on __linux__. xonotic-v0.8.0
Rudolf Polzer [Tue, 28 Oct 2014 14:37:21 +0000 (14:37 +0000)]
Include unistd.h on POSIX, not just on __linux__.

Should fix use of fork() on OS X.

6 years agoMore clang fixes.
Rudolf Polzer [Thu, 13 Feb 2014 16:19:13 +0000 (17:19 +0100)]
More clang fixes.

6 years agoSome clang fixes. Not all yet.
Rudolf Polzer [Thu, 13 Feb 2014 16:13:24 +0000 (17:13 +0100)]
Some clang fixes. Not all yet.

6 years agoFix touchpad scrolling on Linux.
Rudolf Polzer [Tue, 10 Dec 2013 05:54:15 +0000 (06:54 +0100)]
Fix touchpad scrolling on Linux.

7 years agoFound why RadSubdivideDiffuseLight happens with !bouncing. Trying
Rudolf Polzer [Tue, 24 Sep 2013 12:51:54 +0000 (14:51 +0200)]
Found why RadSubdivideDiffuseLight happens with !bouncing. Trying
another one now.

7 years agoHAHA. Fix a bug that prevented ANY non-sRGB builds with the current default build...
Rudolf Polzer [Tue, 24 Sep 2013 10:45:12 +0000 (12:45 +0200)]
HAHA. Fix a bug that prevented ANY non-sRGB builds with the current default build menu. For ages now. Also addd some attempt to track down a bounce issue.

7 years agoBUILD=native
Rudolf Polzer [Fri, 13 Sep 2013 10:48:56 +0000 (12:48 +0200)]
BUILD=native

7 years agolazy hack to make make work
Rudolf Polzer [Fri, 2 Aug 2013 11:27:43 +0000 (13:27 +0200)]
lazy hack to make make work

7 years agorework symlink creation logic
Rudolf Polzer [Fri, 2 Aug 2013 10:49:17 +0000 (12:49 +0200)]
rework symlink creation logic

7 years agoMerge remote-tracking branch 'origin/ingar/alphahack_crashfix', fixes #1714
Rudolf Polzer [Sat, 6 Jul 2013 16:59:03 +0000 (18:59 +0200)]
Merge remote-tracking branch 'origin/ingar/alphahack_crashfix', fixes #1714

7 years agoMerge remote-tracking branch 'origin/ingar/texture_layout_defaults', fixes #1711
Rudolf Polzer [Sat, 6 Jul 2013 16:58:56 +0000 (18:58 +0200)]
Merge remote-tracking branch 'origin/ingar/texture_layout_defaults', fixes #1711

7 years agoalso add an unsuffixed symlink, fixes #1710
Rudolf Polzer [Sat, 6 Jul 2013 16:54:44 +0000 (18:54 +0200)]
also add an unsuffixed symlink, fixes #1710

7 years agoFix an invalid pointer reference in the alphahack image loader, print filename on...
Stijn Buys [Tue, 2 Jul 2013 17:23:35 +0000 (19:23 +0200)]
Fix an invalid pointer reference in the alphahack image loader, print filename on LoadJPGBuff error messages.

7 years agoOn Linux, set the default executable suffix to 'uname -m'
Stijn Buys [Tue, 25 Jun 2013 21:40:55 +0000 (23:40 +0200)]
On Linux, set the default executable suffix to 'uname -m'

7 years agoCleaned up comments.
Stijn Buys [Tue, 25 Jun 2013 20:00:02 +0000 (22:00 +0200)]
Cleaned up comments.

7 years agoMakes the texture layout dialog remember last used values, corrects x entry not havin...
Stijn Buys [Tue, 25 Jun 2013 19:32:49 +0000 (21:32 +0200)]
Makes the texture layout dialog remember last used values, corrects x entry not having its value selected when showing the dialog.

7 years agofix some easy warnings
Rudolf Polzer [Wed, 19 Jun 2013 16:50:07 +0000 (18:50 +0200)]
fix some easy warnings

7 years agoFix a possible bug in floodlighting/dirtmapping in conjunction with alphashadow surfaces xonotic-v0.7.0
Rudolf Polzer [Thu, 28 Mar 2013 11:26:46 +0000 (12:26 +0100)]
Fix a possible bug in floodlighting/dirtmapping in conjunction with alphashadow surfaces

7 years agogtk is retarded. Nevertheless, the warping CAN be platform independent.
Rudolf Polzer [Sat, 16 Mar 2013 19:02:31 +0000 (20:02 +0100)]
gtk is retarded. Nevertheless, the warping CAN be platform independent.

7 years agoalso kill the win32 specific path (gtk should handle this anyway)
Rudolf Polzer [Sat, 16 Mar 2013 18:51:14 +0000 (19:51 +0100)]
also kill the win32 specific path (gtk should handle this anyway)

7 years agoget rid of some REALLY stupid code (generic pointer READ, but x11 specific pointer...
Rudolf Polzer [Sat, 16 Mar 2013 18:43:33 +0000 (19:43 +0100)]
get rid of some REALLY stupid code (generic pointer READ, but x11 specific pointer WARP?!?)

7 years agoupdates to install-dlls-fedora.sh by maci and me
Rudolf Polzer [Tue, 15 Jan 2013 10:13:32 +0000 (11:13 +0100)]
updates to install-dlls-fedora.sh by maci and me

7 years agoOops, forgot this file
Rudolf Polzer [Mon, 14 Jan 2013 20:22:41 +0000 (21:22 +0100)]
Oops, forgot this file

7 years agoFedora support patch by maci (make DLL finding work with Fedora's mingw)
Rudolf Polzer [Mon, 14 Jan 2013 20:21:37 +0000 (21:21 +0100)]
Fedora support patch by maci (make DLL finding work with Fedora's mingw)

7 years agomore pointers
Rudolf Polzer [Mon, 14 Jan 2013 11:03:08 +0000 (12:03 +0100)]
more pointers

7 years agoadd a missing cast
Rudolf Polzer [Mon, 14 Jan 2013 10:59:24 +0000 (11:59 +0100)]
add a missing cast

7 years agodebugging.h: use int 3 on amd64 too
Rudolf Polzer [Mon, 14 Jan 2013 10:55:49 +0000 (11:55 +0100)]
debugging.h: use int 3 on amd64 too

7 years agosplit up mingw-Makefile.inc into mingw-Makefile.inc, mingw-radiantdeps-Makefile.inc
Rudolf Polzer [Mon, 14 Jan 2013 10:52:27 +0000 (11:52 +0100)]
split up mingw-Makefile.inc into mingw-Makefile.inc, mingw-radiantdeps-Makefile.inc

7 years agoadd a mingw-fedora-Makefile.conf (my maci)
Rudolf Polzer [Mon, 14 Jan 2013 08:00:10 +0000 (09:00 +0100)]
add a mingw-fedora-Makefile.conf (my maci)

7 years agoFix bug #1356: .obj loading bug in picolib
Nodenum [Mon, 17 Dec 2012 08:32:19 +0000 (09:32 +0100)]
Fix bug #1356: .obj loading bug in picolib

There's a bug in picolib when parsing the first group in an .obj file.

The library tries to set the surface name to a surface pointer
that is still NULL.

This gets silently ignored but the problem reappears later
in a warning message when the material or a face is parsed.

8 years agofix compile error
Rudolf Polzer [Thu, 25 Oct 2012 07:57:05 +0000 (09:57 +0200)]
fix compile error

8 years agol_net: don't segfault of gethostbyname(gethostname()) fails
Rudolf Polzer [Wed, 24 Oct 2012 13:55:42 +0000 (15:55 +0200)]
l_net: don't segfault of gethostbyname(gethostname()) fails

Can happen on Linux with misconfigured /etc/hosts.

8 years agofix Q1pack URL
Rudolf Polzer [Tue, 12 Jun 2012 15:09:26 +0000 (17:09 +0200)]
fix Q1pack URL

8 years agoMerge branch 'master' into divVerent/farplanedist-sky-fix
Rudolf Polzer [Tue, 15 May 2012 09:56:17 +0000 (11:56 +0200)]
Merge branch 'master' into divVerent/farplanedist-sky-fix

Conflicts:
tools/quake3/q3map2/prtfile.c
tools/quake3/q3map2/vis.c
tools/quake3/q3map2/visflow.c

8 years agoMerge remote-tracking branch 'ttimo/master'
Rudolf Polzer [Mon, 7 May 2012 10:32:21 +0000 (12:32 +0200)]
Merge remote-tracking branch 'ttimo/master'

Conflicts:
config.py
libs/missing.h
plugins/model/cpicosurface.cpp
plugins/vfspk3/unzip.cpp
radiant/main.cpp
radiant/mainframe.cpp
radiant/mainframe.h
radiant/missing.cpp
radiant/pluginmanager.cpp
radiant/preferences.cpp
radiant/preferences.h
tools/quake3/common/cmdlib.c
tools/quake3/common/unzip.c
tools/quake3/q3map2/image.c

8 years agoerror check and bail if permission denied during gamepack install
Timothee 'TTimo' Besset [Sun, 6 May 2012 21:59:07 +0000 (16:59 -0500)]
error check and bail if permission denied during gamepack install

8 years agodunno what happened there, someone brain farted hard
Timothee 'TTimo' Besset [Sun, 6 May 2012 20:55:10 +0000 (15:55 -0500)]
dunno what happened there, someone brain farted hard

8 years agoMerge pull request #50 from merlin1991/ETPack
Timothee "TTimo" Besset [Sun, 6 May 2012 18:23:11 +0000 (11:23 -0700)]
Merge pull request #50 from merlin1991/ETPack

Add support for W:ET to the game setup dialog

8 years agoMerge pull request #47 from mrwonko/MapLoading
Timothee "TTimo" Besset [Sun, 6 May 2012 18:21:44 +0000 (11:21 -0700)]
Merge pull request #47 from mrwonko/MapLoading

Ability to open .map files with Radiant

8 years agoMerge pull request #49 from mrwonko/FloatingWindowWorkaround
Timothee "TTimo" Besset [Sun, 6 May 2012 18:20:31 +0000 (11:20 -0700)]
Merge pull request #49 from mrwonko/FloatingWindowWorkaround

Workaround for broken floating windows

8 years agoAdd support for W:ET to the game setup dialog
Christian Ratzenhofer [Sun, 6 May 2012 15:16:44 +0000 (17:16 +0200)]
Add support for W:ET to the game setup dialog

8 years agotypo fix
Timothee 'TTimo' Besset [Sat, 5 May 2012 13:46:41 +0000 (08:46 -0500)]
typo fix

8 years agoMerge pull request #48 from mrwonko/ModelAlpha
Timothee "TTimo" Besset [Sat, 5 May 2012 03:32:27 +0000 (20:32 -0700)]
Merge pull request #48 from mrwonko/ModelAlpha

Fixed transparency (qer_trans) not working on models

8 years agoWorkaround for broken floating windows (XY Window etc. always in front of e.g. surfac...
Willi Schinmeyer [Fri, 4 May 2012 08:45:49 +0000 (10:45 +0200)]
Workaround for broken floating windows (XY Window etc. always in front of e.g. surface inspector, properties)

8 years agoFixed transparency (qer_trans) not working on models
Willi Schinmeyer [Fri, 4 May 2012 08:32:48 +0000 (10:32 +0200)]
Fixed transparency (qer_trans) not working on models

8 years agoFixed spelling in a comment
Willi Schinmeyer [Fri, 4 May 2012 08:07:28 +0000 (10:07 +0200)]
Fixed spelling in a comment

8 years agoIf the first argument ends in .map, try to load it as a map (instead of as a project)
Willi Schinmeyer [Fri, 4 May 2012 08:02:31 +0000 (10:02 +0200)]
If the first argument ends in .map, try to load it as a map (instead of as a project)

8 years agoMerge pull request #46 from merlin1991/confignamefix
Timothee "TTimo" Besset [Fri, 4 May 2012 03:12:53 +0000 (20:12 -0700)]
Merge pull request #46 from merlin1991/confignamefix

Properly name game configuration files

8 years agoProperly name game configuration files, fixes #43 and other issues related to stringc...
Christian Ratzenhofer [Thu, 3 May 2012 22:18:30 +0000 (00:18 +0200)]
Properly name game configuration files, fixes #43 and other issues related to stringcompares against config filename

8 years agouse http for netradiant gamepack download
Rudolf Polzer [Wed, 2 May 2012 15:35:47 +0000 (17:35 +0200)]
use http for netradiant gamepack download

8 years agofix bobtoolz patch caulk crash
Timothee 'TTimo' Besset [Mon, 23 Apr 2012 00:43:26 +0000 (19:43 -0500)]
fix bobtoolz patch caulk crash

8 years agounused
Timothee 'TTimo' Besset [Sun, 15 Apr 2012 16:24:38 +0000 (11:24 -0500)]
unused

8 years agoonly Q3 and UrT pack for now. will need maintainers on the others to re-add them
Timothee 'TTimo' Besset [Sun, 15 Apr 2012 16:24:08 +0000 (11:24 -0500)]
only Q3 and UrT pack for now. will need maintainers on the others to re-add them

8 years agofix q3map2
Timothee 'TTimo' Besset [Sat, 14 Apr 2012 22:31:10 +0000 (17:31 -0500)]
fix q3map2

8 years agofix unzip code
Timothee 'TTimo' Besset [Sat, 14 Apr 2012 22:15:55 +0000 (17:15 -0500)]
fix unzip code

8 years agooops, this was broken
Rudolf Polzer [Thu, 12 Apr 2012 15:14:40 +0000 (17:14 +0200)]
oops, this was broken

8 years agoMerge remote-tracking branch 'ttimo/master'
Rudolf Polzer [Thu, 12 Apr 2012 13:32:57 +0000 (15:32 +0200)]
Merge remote-tracking branch 'ttimo/master'

Conflicts:
plugins/imagepng/plugin.cpp
radiant/gtkdlgs.cpp
radiant/radiant.ico
tools/quake3/q3map2/image.c

8 years agoMerge branch 'master' of /var/cache/git/xonotic/netradiant
Rudolf Polzer [Mon, 9 Apr 2012 07:44:44 +0000 (09:44 +0200)]
Merge branch 'master' of /var/cache/git/xonotic/netradiant

8 years agofix invalid use of <glib/...> headers
michaelb [Mon, 9 Apr 2012 07:44:35 +0000 (09:44 +0200)]
fix invalid use of <glib/...> headers

8 years agomoved to the web repository. online at http://icculus.org/gtkradiant/documentation...
Timothee TTimo Besset [Sun, 8 Apr 2012 23:45:33 +0000 (18:45 -0500)]
moved to the web repository. online at icculus.org/gtkradiant/documentation/windows_compile_guide/

8 years agoMerge branch 'master' of github.com:TTimo/GtkRadiant
Timothee TTimo Besset [Sat, 7 Apr 2012 23:53:20 +0000 (18:53 -0500)]
Merge branch 'master' of github.com:TTimo/GtkRadiant

8 years agoQ2Tools source - didn't import this in initially
Timothee TTimo Besset [Sat, 7 Apr 2012 23:53:01 +0000 (18:53 -0500)]
Q2Tools source - didn't import this in initially

8 years agosimplify map file
Rudolf Polzer [Mon, 2 Apr 2012 09:46:02 +0000 (11:46 +0200)]
simplify map file

8 years agoMerge pull request #27 from freemancw/master
Timothee "TTimo" Besset [Mon, 2 Apr 2012 01:42:22 +0000 (18:42 -0700)]
Merge pull request #27 from freemancw/master

Issue #15 - fixed about dialog / Updated 1.5.0 icon

8 years agocentered about on parent window
Clinton Freeman [Mon, 2 Apr 2012 01:01:18 +0000 (21:01 -0400)]
centered about on parent window

8 years agoreorganized about dialog code, added updated 1.5.0 .ico
Clinton Freeman [Mon, 2 Apr 2012 00:37:53 +0000 (20:37 -0400)]
reorganized about dialog code, added updated 1.5.0 .ico

8 years agoreorganized about dialog and updated logo. fixed
Clinton Freeman [Sun, 1 Apr 2012 20:54:44 +0000 (16:54 -0400)]
reorganized about dialog and updated logo. fixed
broken links

8 years agoThis is fix for failure of compilation on new libpng
alex8664 [Sat, 31 Mar 2012 13:33:33 +0000 (17:33 +0400)]
This is fix for failure of compilation on new libpng

8 years agoThis is fix for failure of compilation on new libpng
alex8664 [Sat, 31 Mar 2012 13:31:50 +0000 (17:31 +0400)]
This is fix for failure of compilation on new libpng

8 years agoMerge remote-tracking branch 'github/master'
Rudolf Polzer [Tue, 27 Mar 2012 10:11:37 +0000 (12:11 +0200)]
Merge remote-tracking branch 'github/master'

Conflicts:
.gitignore
config.py
libs/synapse/synapse.cpp
plugins/imagehl/lbmlib.cpp
plugins/surface_heretic2/surfacedialog.cpp
plugins/surface_ufoai/surfacedialog.cpp
radiant/brushscript.cpp
radiant/main.cpp
radiant/preferences.cpp
tools/quake3/common/cmdlib.c
tools/quake3/common/cmdlib.h
tools/quake3/q3map2/path_init.c
windows_compile_guide/index.html

8 years agoMerge commit '830125fad042fad35dc029b6eb57c8156ad7e176'
Rudolf Polzer [Tue, 27 Mar 2012 10:03:28 +0000 (12:03 +0200)]
Merge commit '830125fad042fad35dc029b6eb57c8156ad7e176'

8 years agomy own uncrustify run
Rudolf Polzer [Tue, 27 Mar 2012 10:03:21 +0000 (12:03 +0200)]
my own uncrustify run

8 years agoremove an useless vcproj
Rudolf Polzer [Tue, 27 Mar 2012 09:45:55 +0000 (11:45 +0200)]
remove an useless vcproj

8 years agouncrustify config - not applying until more sync with internal versions are done
TTimo [Sun, 16 Mar 2008 15:51:12 +0000 (15:51 +0000)]
uncrustify config - not applying until more sync with internal versions are done

git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/branches/ZeroRadiant@212 8a3a26a2-13c4-0310-b231-cf6edde360e5

8 years agoMerge commit '515673c08f8718a237e90c2130a1f5294f966d6a'
Rudolf Polzer [Tue, 27 Mar 2012 09:43:50 +0000 (11:43 +0200)]
Merge commit '515673c08f8718a237e90c2130a1f5294f966d6a'

Conflicts:
.gitignore
COMPILING
CONTRIBUTORS
ChangeLog
DoxyConfig
Doxyfile
Doxygen_files/Doxyfile
Doxygen_files/doxy_mainpage.h
Doxygen_files/doxygen_gtkradiant_foot.html
Doxygen_files/doxygen_gtkradiant_head.html
Doxygen_files/doxygen_index.html
Doxygen_files/doxygen_reference_foot.html
Doxygen_files/doxygen_reference_head.html
Doxygen_files/example/annotated.html
Doxygen_files/example/classIEpair-members.html
Doxygen_files/example/classIEpair.html
Doxygen_files/example/classes.html
Doxygen_files/example/files.html
Doxygen_files/example/functions.html
Doxygen_files/example/graph_legend.dot
Doxygen_files/example/graph_legend.html
Doxygen_files/example/index.html
Doxygen_files/example/pages.html
Doxygen_files/example/test_8c-source.html
Doxygen_files/example/test_8c.html
Doxygen_files/example/todo.html
Doxygen_files/genDoxyfile
Doxygen_files/gendoxfunctions
Doxygen_files/reference1.html
README.doxygen
SConscript.q3map2
SConscript.radiant
TODO
config.py
contrib/bkgrnd2d/bkgrnd2d.vcproj
contrib/bobtoolz/bobtoolz.vcproj
contrib/camera/camera.vcproj
contrib/gtkgensurf/gtkgensurf.vcproj
contrib/hydratoolz/hydratoolz.vcproj
contrib/prtview/prtview.vcproj
contrib/ufoai/ufoai.vcproj
gen.readme
gendox
libs/picomodel/picomodules.c
plugins/eclassfgd/fgd.vcproj
plugins/entity/entity.vcproj
plugins/image/image.vcproj
plugins/imagem8/imagem8.vcproj
plugins/imagepng/imagepng.vcproj
plugins/imagewal/imagewal.vcproj
plugins/map/map.vcproj
plugins/mapxml/mapxml.vcproj
plugins/model/model.vcproj
plugins/shaders/shaders.vcproj
plugins/spritemodel/spritemodel.vcproj
plugins/surface/surface.vcproj
plugins/surface_heretic2/surface_heretic2.vcproj
plugins/surface_quake2/surface_quake2.vcproj
plugins/surface_ufoai/surface_ufoai.vcproj
plugins/textool/textool.vcproj
plugins/vfspak/vfspak.vcproj
plugins/vfspk3/vfspk3.vcproj
plugins/vfswad/vfswad.vcproj
radiant.sln
radiant/main.cpp
radiant/mainframe.cpp
radiant/preferences.cpp
radiant/preferences.h
radiant/radiant.vcproj
setup/data/tools/plugins/bt/bt-el2.txt
tools/quake3/q3map2/main.c
tools/quake3/q3map2/q3map2.vcproj
windows_compile_guide/index.html

8 years agoMerge commit '48410b113dd2036e69dbf723a39ec9af02fc9b12'
Rudolf Polzer [Tue, 27 Mar 2012 09:33:51 +0000 (11:33 +0200)]
Merge commit '48410b113dd2036e69dbf723a39ec9af02fc9b12'

8 years agoMerge pull request #21 from merlin1991/Q3-gamepack-fix
Timothee "TTimo" Besset [Mon, 26 Mar 2012 13:56:22 +0000 (06:56 -0700)]
Merge pull request #21 from merlin1991/Q3-gamepack-fix

copy shaderlist for Q3 if missing and make sure the config folder for *.game files exists

8 years agoCheck if games folder exists, and copy shaderlist for Q3 if missing
Christian Ratzenhofer [Mon, 26 Mar 2012 10:12:28 +0000 (12:12 +0200)]
Check if games folder exists, and copy shaderlist for Q3 if missing

8 years agoMerge pull request #19 from merlin1991/scons-update
Timothee "TTimo" Besset [Sun, 25 Mar 2012 23:33:16 +0000 (16:33 -0700)]
Merge pull request #19 from merlin1991/scons-update

Scons update

8 years agoupdated Windows compile guide to include git
Christian Ratzenhofer [Sun, 25 Mar 2012 23:09:09 +0000 (01:09 +0200)]
updated Windows compile guide to include git
and the newest changes to the scons script (no more full blown msys)

8 years agoRemove calls to wget unzip and cp in the setup target of scons
Christian Ratzenhofer [Sun, 25 Mar 2012 22:26:04 +0000 (00:26 +0200)]
Remove calls to wget unzip and cp in the setup target of scons
This allows to build on windows without msys

8 years agoMerge branch 'master' of github.com:TTimo/GtkRadiant
Timothee TTimo Besset [Fri, 23 Mar 2012 03:59:40 +0000 (22:59 -0500)]
Merge branch 'master' of github.com:TTimo/GtkRadiant

8 years agonew version of glib is touchy
Timothee TTimo Besset [Fri, 23 Mar 2012 03:57:36 +0000 (22:57 -0500)]
new version of glib is touchy

8 years agoMerge pull request #6 from bnoordhuis/cleanup
Timothee "TTimo" Besset [Sun, 18 Mar 2012 13:52:13 +0000 (06:52 -0700)]
Merge pull request #6 from bnoordhuis/cleanup

cleanup + q3map2 crash fix

8 years agobuild: re-enable optimizations in release builds
Ben Noordhuis [Sat, 17 Mar 2012 15:13:32 +0000 (16:13 +0100)]
build: re-enable optimizations in release builds

Commit f961a54 fixes the q3map2 crash at startup so it's safe to enable
optimizations again.

8 years agoq3map2: bump MAX_OS_PATH to 4096
Ben Noordhuis [Sun, 18 Mar 2012 01:02:48 +0000 (02:02 +0100)]
q3map2: bump MAX_OS_PATH to 4096

Fixes a "buffer overflow detected" abort when compiled with _FORTIFY_SOURCE=1.

The realpath(3) function in glibc checks if the destination buffer is large
enough to hold up to PATH_MAX characters and aborts if that is not the case.
PATH_MAX doesn't have to be defined so assume that it's equal to 4096.

We should really be using pathconf(_PC_PATH_MAX) instead of a hard-coded value
but that means we can no longer use static buffers to hold paths.

8 years agoq3map2: harden UNIX path sniffer against buffer overflows
Ben Noordhuis [Sun, 18 Mar 2012 01:00:09 +0000 (02:00 +0100)]
q3map2: harden UNIX path sniffer against buffer overflows

8 years agoq3map2: fix dangling pointer dereference
Ben Noordhuis [Sun, 18 Mar 2012 00:53:03 +0000 (01:53 +0100)]
q3map2: fix dangling pointer dereference

`last` was used but not initialized.

Also fixes a segmentation fault if PATH is not in the environment.

8 years agoq3map2: getpwent() result may not be persistent
Ben Noordhuis [Sat, 17 Mar 2012 23:26:28 +0000 (00:26 +0100)]
q3map2: getpwent() result may not be persistent

Use getpwuid_r() instead and store the path in a static buffer.

8 years agoq3map2: add safe string copy functions
Ben Noordhuis [Sat, 17 Mar 2012 23:34:31 +0000 (00:34 +0100)]
q3map2: add safe string copy functions

* Q_strncpyz()
* Q_strncat()
* Q_strcat()

Guard against buffer overruns, always zero terminate the result.

8 years agoq3map2: fix bogus empty string checks
Ben Noordhuis [Sat, 17 Mar 2012 22:53:12 +0000 (23:53 +0100)]
q3map2: fix bogus empty string checks

qdir is an array, not a pointer, so `if (qdir)` is always true.

8 years agofix warning: unused variable 'foo'
Ben Noordhuis [Sat, 17 Mar 2012 22:09:08 +0000 (23:09 +0100)]
fix warning: unused variable 'foo'

8 years agofix warning: array subscript is above array bounds
Ben Noordhuis [Sat, 17 Mar 2012 21:58:48 +0000 (22:58 +0100)]
fix warning: array subscript is above array bounds

Simplify and flatten the code while we're at it.

8 years agofix warning: format not a string literal and no format arguments
Ben Noordhuis [Sat, 17 Mar 2012 21:32:01 +0000 (22:32 +0100)]
fix warning: format not a string literal and no format arguments

8 years ago.gitignore build artifacts
Ben Noordhuis [Sat, 17 Mar 2012 15:16:12 +0000 (16:16 +0100)]
.gitignore build artifacts

8 years agouncrustify! now the code is only ugly on the *inside*
Timothee TTimo Besset [Sat, 17 Mar 2012 20:01:54 +0000 (15:01 -0500)]
uncrustify! now the code is only ugly on the *inside*

8 years agotrash a bunch of outdated and confusing things
Timothee TTimo Besset [Sat, 17 Mar 2012 19:07:19 +0000 (14:07 -0500)]
trash a bunch of outdated and confusing things

8 years agoConvert svn:ignore properties to .gitignore.
git-svn-migrate [Sat, 17 Mar 2012 03:20:47 +0000 (22:20 -0500)]
Convert svn:ignore properties to .gitignore.