summaryrefslogtreecommitdiff
path: root/test/scr/caption_new
diff options
context:
space:
mode:
authorNiclas Zeising <zeising@daemonic.se>2016-08-31 20:03:36 +0200
committerNiclas Zeising <zeising@daemonic.se>2016-08-31 20:03:36 +0200
commit5ab630b59fe449c451d3a6f024d3c997af020a22 (patch)
tree8b373d597e34d667c8a28e986a714f1d9f48eebb /test/scr/caption_new
parent873c84f0722b4edf98e46d6c966c0d3618bfb2ac (diff)
Only use sysconf() if HOST_NAME_MAX is undefined
On some systsems sysconf() can return a very large value, unsuitable for use with malloc(). Only use sysconf() if HOST_NAME_MAX isn't avalable.
Diffstat (limited to 'test/scr/caption_new')
0 files changed, 0 insertions, 0 deletions