100l, missing () around *valp
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sat, 22 Jan 2005 12:49:11 +0000 (12:49 +0000)
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sat, 22 Jan 2005 12:49:11 +0000 (12:49 +0000)
git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@14573 b3059339-0415-0410-9bf9-f77b7e298cf2

subopt-helper.c

index 1ffd5fe..de103e1 100644 (file)
@@ -158,7 +158,7 @@ int subopt_parse( char const * const str, opt_t * opts )
                   if (tmp.str && tmp.len > 0) {
                     *valp = malloc(tmp.len + 1);
                     memcpy(*valp, tmp.str, tmp.len);
-                    *valp[tmp.len] = 0;
+                    (*valp)[tmp.len] = 0;
                   }
                   break;
                 }