diff options
author | woro <woro@e10066b5-e1e2-0310-b819-94efdf66514b> | 2008-08-08 18:28:31 +0000 |
---|---|---|
committer | woro <woro@e10066b5-e1e2-0310-b819-94efdf66514b> | 2008-08-08 18:28:31 +0000 |
commit | 5736cc4649569c91f2891a88635cdf66ccbb2bfa (patch) | |
tree | 880e543f8e5d1b06e87bf6638905fa2d34c17a4b | |
parent | 91025428f2b78381d0f876818845402ac01e48a8 (diff) | |
download | vdr-plugin-muggle-5736cc4649569c91f2891a88635cdf66ccbb2bfa.tar.gz vdr-plugin-muggle-5736cc4649569c91f2891a88635cdf66ccbb2bfa.tar.bz2 |
fix off by one while initializing languages
git-svn-id: https://vdr-muggle.svn.sourceforge.net/svnroot/vdr-muggle/trunk/muggle-plugin@1206 e10066b5-e1e2-0310-b819-94efdf66514b
-rw-r--r-- | mg_db.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -921,7 +921,7 @@ void mgDb::FillTables() { char id[4]; char lang[41]; strncpy(id,languages[i].id,3); - id[4]=0; + id[3]=0; strncpy(lang,languages[i].name,40); lang[40]=0; sprintf(b,"INSERT INTO language (id,language) VALUES('%s',%s)", |