Bug 136788 - gwget-0.95-3: undefined C code
Summary: gwget-0.95-3: undefined C code
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Final
Hardware: Other Other
: P5 - None : Minor
Target Milestone: ---
Assignee: Ladislav Michnovic
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-02 22:29 UTC by David Binderman
Modified: 2005-12-05 20:41 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Binderman 2005-12-02 22:29:09 UTC
Hello there,

I just tried to compile package gwget-0.95-3 with a prerelease of the
GNU C compiler version 4.1. It said

wget-log.c:42: warning: operation on `p' may be undefined

The source code is

	while (*p != ' ')
		*p++ = *(p+1);

I agree with the compiler - this code seems to be undefined. 

Suggest new code

	while (*p != ' ')
	{
		p[ 0] = p[ 1]);
		++p;
	}

BTW, the email address of the author [ frimost@dhis.org ]
seems broken
Comment 1 Ladislav Michnovic 2005-12-05 20:41:49 UTC
Code fixed.