forked from pool/fontforge
cbf967fa56
- fontforge-arraysubscript.patch: Fix invalid array subscript OBS-URL: https://build.opensuse.org/request/show/225215 OBS-URL: https://build.opensuse.org/package/show/M17N/fontforge?expand=0&rev=32
14 lines
553 B
Diff
14 lines
553 B
Diff
Index: fontforge-20120731-b/fontforge/contextchain.c
|
|
===================================================================
|
|
--- fontforge-20120731-b.orig/fontforge/contextchain.c
|
|
+++ fontforge-20120731-b/fontforge/contextchain.c
|
|
@@ -928,7 +928,7 @@ return;
|
|
uc_strcpy(ubuf,buf);
|
|
} else {
|
|
ubuf[0]=' ';
|
|
- utf82u_strncpy(ubuf-1,classes[cols*r+0].u.md_str,sizeof(ubuf)/sizeof(ubuf[0])-2 );
|
|
+ utf82u_strncpy(ubuf+1,classes[cols*r+0].u.md_str,sizeof(ubuf)/sizeof(ubuf[0])-2 );
|
|
ubuf[sizeof(ubuf)/sizeof(ubuf[0])-2] = '\0';
|
|
uc_strcat(ubuf," ");
|
|
}
|