A spokeswoman for Bernie Mac says the actor is responding well to treatment for pneumonia and hopes to be released in the next few weeks.

Publicist Danica Smith said in a statement today that Mac's condition is "stable." Smith announced August 1st that Mac was hospitalized in Chicago. She has said the pneumonia isn't related to an inflammatory lung disease Mac also has. That condition has been in remission since 2005.

The Chicago native made waves last month with off-color jokes during a fundraiser for Democratic presidential candidate Barack Obama.

The comedian starred in the critically acclaimed Fox television series "The Bernie Mac Show." His film credits include roles in the "Ocean's Eleven" franchise.