]> git.sesse.net Git - vlc/commitdiff
* src/libvlc.c: cosmetic fix.
authorSam Hocevar <sam@videolan.org>
Wed, 21 Sep 2005 09:53:14 +0000 (09:53 +0000)
committerSam Hocevar <sam@videolan.org>
Wed, 21 Sep 2005 09:53:14 +0000 (09:53 +0000)
src/libvlc.c

index 1b88fbe8855d57871329ac1f7ded9a4985c095cc..85046e2e8dd6d452ee63534060b34db4ac98f3f3 100644 (file)
@@ -2614,8 +2614,9 @@ char *FromLocale( const char *locale )
         while( vlc_iconv( libvlc.from_locale, &iptr, &inb, &optr, &outb )
                                                                == (size_t)-1 )
         {
-            *optr++ = '?';
-            *iptr++;
+            *optr = '?';
+            optr++;
+            iptr++;
             vlc_iconv( libvlc.from_locale, NULL, NULL, NULL, NULL );
         }
         vlc_mutex_unlock( &libvlc.from_locale_lock );
@@ -2654,8 +2655,9 @@ char *ToLocale( const char *utf8 )
         while( vlc_iconv( libvlc.to_locale, &iptr, &inb, &optr, &outb )
                                                                == (size_t)-1 )
         {
-            *optr++ = '?'; /* should not happen, and yes, it sucks */
-            *iptr++;
+            *optr = '?'; /* should not happen, and yes, it sucks */
+            optr++;
+            iptr++;
             vlc_iconv( libvlc.to_locale, NULL, NULL, NULL, NULL );
         }
         vlc_mutex_unlock( &libvlc.to_locale_lock );