openbsd-ports/editors/fte/patches/patch-src_o_cvsbase_cpp
2007-12-01 21:19:33 +00:00

22 lines
979 B
Plaintext

$OpenBSD: patch-src_o_cvsbase_cpp,v 1.1.1.1 2007/12/01 21:19:33 mgrimm Exp $
--- src/o_cvsbase.cpp.orig Sat Sep 15 10:38:45 2007
+++ src/o_cvsbase.cpp Sat Sep 15 10:40:22 2007
@@ -409,7 +409,7 @@ void ECvsBase::GetName (char *AName,int MaxLen) {
void ECvsBase::GetInfo (char *AInfo,int MaxLen) {
char format[128];
- sprintf (format,"%2d %04d/%03d %s (%%.%is) ",ModelNo,Row,Count,Title,MaxLen-24-strlen (Title));
+ sprintf (format,"%2d %04d/%03d %s (%%.%lus) ",ModelNo,Row,Count,Title,MaxLen-24-strlen (Title));
sprintf (AInfo,format,Command);
}
@@ -424,7 +424,7 @@ void ECvsBase::GetPath (char *APath,int MaxLen) {
void ECvsBase::GetTitle(char *ATitle, int MaxLen, char *ASTitle, int SMaxLen) {
char format[128];
- sprintf (format,"%s: %%.%is",Title,MaxLen-4-strlen (Title));
+ sprintf (format,"%s: %%.%lus",Title,MaxLen-4-strlen (Title));
sprintf (ATitle,format,Command);
strncpy (ASTitle,Title,SMaxLen);
ASTitle[SMaxLen-1]=0;