openbsd-ports/mail/xfmail/patches/patch-src_ui_font_cpp
avsm 9172f424be plug some off-by-ones in various bits of mail and ui
submitted upstream, PKGNAME bumped
2003-06-20 12:01:55 +00:00

13 lines
497 B
Plaintext

$OpenBSD: patch-src_ui_font_cpp,v 1.1 2003/06/20 12:01:55 avsm Exp $
--- src/ui/font.cpp.orig Fri Jun 20 12:48:23 2003
+++ src/ui/font.cpp Fri Jun 20 12:48:41 2003
@@ -175,7 +175,7 @@ void restore_charsets() {
while(1) {
aname[0] = '\0';
adescr[0] = '\0';
- if(sscanf(str, "%24s %24s", aname, adescr) != 2)
+ if(sscanf(str, "%23s %23s", aname, adescr) != 2)
break;
add_charset(aname, adescr, supp_charsets[k].charset_code);
if((str = strchr(str, ' ')) == NULL)