File librcc-0.2.9-suse-lint.diff of Package librcc0

Author: Suren A. Chilingaryan <csa@dside.dyndns.org>
Description: Remove rpmlint warnings

Index: src/librcc.c
===================================================================
--- src/librcc.c.orig	2009-08-27 23:57:37.000000000 +0400
+++ src/librcc.c	2010-03-11 22:40:46.000000000 +0300
@@ -401,8 +401,8 @@ rcc_language_id rccRegisterLanguage(rcc_
     if ((i==1)&&(!language->charsets[1])&&(rccIsUTF8(language->charsets[0])))
 	    ctx->ilang[ctx->n_languages].latin = 1;
 
-    ctx->languages[ctx->n_languages++] = (rcc_language_ptr)(ctx->ilang + ctx->n_languages);
-    ctx->languages[ctx->n_languages] = NULL;
+    ctx->languages[ctx->n_languages] = (rcc_language_ptr)(ctx->ilang + ctx->n_languages);
+    ctx->languages[++ctx->n_languages] = NULL;
     
     if (!ctx->current_language)
 	ctx->current_config = rccGetCurrentConfig(ctx);
@@ -508,8 +508,8 @@ rcc_class_id rccRegisterClass(rcc_contex
     ctx->iclass[ctx->n_classes].disabled = NULL;
     ctx->iclass[ctx->n_classes].additional = NULL;
 
-    ctx->classes[ctx->n_classes++] = (rcc_class_ptr)(ctx->iclass + ctx->n_classes);
-    ctx->classes[ctx->n_classes] = NULL;
+    ctx->classes[ctx->n_classes] = (rcc_class_ptr)(ctx->iclass + ctx->n_classes);
+    ctx->classes[++ctx->n_classes] = NULL;
     
     if (!strcasecmp(cl->name, "id3")) {
 	rccRegisterDisabledCharsets(ctx, ctx->n_classes - 1, rcc_default_disabled_id3_charsets);
Index: src/rccstring.c
===================================================================
--- src/rccstring.c.orig	2009-08-27 23:57:37.000000000 +0400
+++ src/rccstring.c	2010-03-11 22:40:46.000000000 +0300
@@ -64,7 +64,7 @@ int rccStringFixID(rcc_string string, rc
     header = (rcc_string_header*)string;
 
 
-    memcpy(lang, header->language, 2); lang[3] = 0;
+    memcpy(lang, header->language, 2); lang[2] = 0;
     curlang = rccGetLanguageName(ctx, header->language_id);
     if ((curlang)&&(!strcasecmp(lang, curlang))) return 0;