]> err.no Git - yubikey-personalization/commitdiff
make status unsigned to match other types
authorKlas Lindfors <klas@yubico.com>
Wed, 19 Sep 2012 06:47:58 +0000 (08:47 +0200)
committerKlas Lindfors <klas@yubico.com>
Wed, 19 Sep 2012 06:47:58 +0000 (08:47 +0200)
ykpers.c

index 4a6858cbfaf5264e6baeaaac80fb0ae6cc214067..9676c43b74cbc66e053061b508209b0e288a25fd 100644 (file)
--- a/ykpers.c
+++ b/ykpers.c
@@ -405,7 +405,7 @@ int ykp_construct_ndef_text(YKNDEF *ndef, const char *text, const char *lang, bo
 {
        size_t data_length = strlen(text);
        size_t lang_length = strlen(lang);
-       char status = lang_length;
+       unsigned char status = lang_length;
        if(isutf16) {
                status &= 0x80;
        }