]> Chaos Git - corbenik/ctrulib.git/commitdiff
re-enable strict-aliasing
authorDave Murphy <davem@devkitpro.org>
Wed, 28 Dec 2016 17:25:54 +0000 (17:25 +0000)
committerDave Murphy <davem@devkitpro.org>
Mon, 16 Jan 2017 15:39:06 +0000 (15:39 +0000)
libctru/source/services/soc/soc_inet_pton.c

index 11adca1252d1877f3784fb2ed727c261b138ab7c..ebdc9f786f2038ccab1f5ab6249bcb83fd90ec7c 100644 (file)
@@ -6,7 +6,7 @@
 
 static int inet_pton4(const char *restrict src, void *restrict dst)
 {
-       u8 ip[4];
+       u8 ip[4] ALIGN(4);
        if(sscanf(src,"%hhu.%hhu.%hhu.%hhu",&ip[0], &ip[1], &ip[2], &ip[3]) != 4) return 0;
 
        memcpy(dst,ip,4);