diff options
author | Ross Burton <ross@openedhand.com> | 2008-11-14 12:54:52 +0000 |
---|---|---|
committer | Ross Burton <ross@openedhand.com> | 2008-11-14 12:54:52 +0000 |
commit | ee436107df2ec2aa7ca619b47e2313557bb40d4e (patch) | |
tree | db384bf6a872308042963e1d71988f69555d379c /examples | |
parent | 06c8cd5b80d49bbd1369e71236e35ced31b0894e (diff) | |
download | gupnp-ee436107df2ec2aa7ca619b47e2313557bb40d4e.tar.gz |
2008-11-14 Ross Burton <ross@linux.intel.com>
* libgupnp/gupnp-service.c:
* libgupnp/gupnp-service-proxy.c:
* tests/test-proxy.c:
* tests/test-server.c:
* tests/test-browsing.c:
* tests/test-introspection.c:
* examples/light-client.c:
* examples/light-server.c:
Don't pass arbitrary strings to printf() for security (thanks Sven Neumann)
git-svn-id: https://svn.o-hand.com/repos/gupnp/trunk/gupnp@1360 d8cb91d7-bff9-0310-92b9-80b65e4482b2
Diffstat (limited to 'examples')
-rw-r--r-- | examples/light-client.c | 2 | ||||
-rw-r--r-- | examples/light-server.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/light-client.c b/examples/light-client.c index af1df80..27efce5 100644 --- a/examples/light-client.c +++ b/examples/light-client.c @@ -99,7 +99,7 @@ main (int argc, char **argv) /* Create the UPnP context */ context = gupnp_context_new (NULL, NULL, 0, &error); if (error) { - g_error (error->message); + g_error ("%s", error->message); } /* Create the control point, searching for SwitchPower services */ diff --git a/examples/light-server.c b/examples/light-server.c index c132032..1f9d109 100644 --- a/examples/light-server.c +++ b/examples/light-server.c @@ -103,7 +103,7 @@ main (int argc, char **argv) /* Create the UPnP context */ context = gupnp_context_new (NULL, NULL, 0, &error); if (error) { - g_error (error->message); + g_error ("%s", error->message); } /* Host the device and service description files */ |