blob: dc1f49d258c7775c096e3726ed254527168d91b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
$NetBSD: patch-aa,v 1.1 2009/10/22 22:27:23 wiz Exp $
From upstream, will be in next release.
--- src/preferences-gconf.c.orig 2009-05-25 03:57:50.000000000 +0200
+++ src/preferences-gconf.c 2009-10-23 00:17:03.000000000 +0200
@@ -170,6 +168,10 @@
return_value = NULL;
strncpy(output, backup, n);
}
+ else if (return_value == NULL || strlen(return_value) == 0)
+ {
+ strncpy(output, backup, n);
+ }
else
{
strncpy(output, return_value, n);
|