changeset 1752:301a2f9b287d

- Use g_strlcpy instead of strcpy
author Ralf Ertzinger <ralf@skytale.net>
date Wed, 19 Sep 2007 18:34:56 +0200
parents dc83901850df
children 99e468c53dff
files src/neon/neon.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/neon/neon.c	Wed Sep 19 17:44:13 2007 +0200
+++ b/src/neon/neon.c	Wed Sep 19 18:34:56 2007 +0200
@@ -223,7 +223,7 @@
                      * End of tag name.
                      */
                     *p = '\0';
-                    strcpy(name, tstart);
+                    g_strlcpy(name, tstart, 4096);
                     _DEBUG("Found tag name: %s", name);
                     state = 2;
                 } else {
@@ -252,7 +252,7 @@
                      * End of value
                      */
                     *p = '\0';
-                    strcpy(value, tstart);
+                    g_strlcpy(value, tstart, 4096);
                     _DEBUG("Found tag value: %s", value);
                     add_icy(m, name, value);
                     state = 4;