diff options
author | Helmut Grohne <helmut@subdivi.de> | 2009-07-29 12:28:59 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2009-07-29 12:28:59 +0200 |
commit | 9b5ef7046bc743ca097b8022b9617e9ca3159c37 (patch) | |
tree | 8847bcea5cb5ea19b8973bade95ec48474a80d26 /uzbl.c | |
parent | e0ac0bcd4fd8eef5f1f214dafe31024abc8cd67b (diff) |
use g_strndup instead of strndup
Diffstat (limited to 'uzbl.c')
-rw-r--r-- | uzbl.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -289,9 +289,7 @@ expand(const char *s, guint recurse) { } assert(vend); - ret = strndup(s, vend-s); - if(!ret) - abort(); + ret = g_strndup(s, vend-s); if(etype == EXP_SIMPLE_VAR || etype == EXP_BRACED_VAR) { |