fix incorrect use of ampersand

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@244 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 1997-12-02 08:33:36 +00:00
parent 96f5891b5d
commit 271d65d1cb
2 changed files with 7 additions and 4 deletions

View File

@ -334,7 +334,7 @@ insertTransaction( Account *acc, Transaction *trans )
else
{
dj = &(oldTrans[j]->date);
if( (datecmp(dj,dt) > 0) & !inserted )
if( (datecmp(dj,dt) > 0) && !inserted )
{
position = i;
acc->transaction[i] = trans;

View File

@ -562,7 +562,7 @@ htmlRead( char *file )
int size=0;
int fd;
/* construct absolute path */
/* construct absolute path -- twiddle the relative path we recieved */
strcpy (filename, helpPath);
strcat (filename, "/");
strcat (filename, file);
@ -610,7 +610,7 @@ htmlReadImageProc (Widget w, String file)
char filename[BUFSIZE];
XmImageInfo *retval;
/* construct absolute path -- twiddle teh relative path we recieved */
/* construct absolute path -- twiddle the relative path we recieved */
strcpy (filename, helpPath);
strcat (filename, "/");
strcat (filename, file);
@ -642,7 +642,10 @@ htmlResolveImage( Widget mw, char *file, int nl )
int err;
char filename[BUFSIZE];
sprintf( (char *)&filename, "%s/%s", helpPath, file );
/* construct absolute path -- twiddle the relative path we recieved */
strcpy (filename, helpPath);
strcat (filename, "/");
strcat (filename, file);
/* initialize stuff: */
memset( img, 0, sizeof(ImageInfo) );