From 0c0368aef44be8eb2ad4e97fcdc2a467f0245bd2 Mon Sep 17 00:00:00 2001 From: Tommy Olofsson <tommy.olofsson.90@gmail.com> Date: Thu, 30 Jun 2016 14:42:23 +0200 Subject: [PATCH] Undo even more unnecc. changes. --- lib/c/2014/labcomm2014_type_signature.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/c/2014/labcomm2014_type_signature.c b/lib/c/2014/labcomm2014_type_signature.c index 1aedd83..85be200 100644 --- a/lib/c/2014/labcomm2014_type_signature.c +++ b/lib/c/2014/labcomm2014_type_signature.c @@ -2,7 +2,6 @@ #include <string.h> // for memcmp #include <stdio.h> // for debug printf -#define CMP_BUFLEN 512 #ifdef LABCOMM2014_USE_UNSUPPORTED_TYPEDEFS /* Dump signature bytes on stdout @@ -78,10 +77,11 @@ static labcomm2014_bool sig_dump_checked(struct labcomm2014_signature_data *sign labcomm2014_bool labcomm2014_signature_cmp( struct labcomm2014_signature_data *s1, struct labcomm2014_signature_data *s2) { - char buf1[CMP_BUFLEN]; - int len1=CMP_BUFLEN; - char buf2[CMP_BUFLEN]; - int len2=CMP_BUFLEN; + int buflen=512; + char buf1[buflen]; + int len1=buflen; + char buf2[buflen]; + int len2=buflen; labcomm2014_bool res1 = labcomm2014_signature_dump(s1, buf1, &len1); labcomm2014_bool res2 = labcomm2014_signature_dump(s2, buf2, &len2); if(res1 || res2) { -- GitLab